Add generic credentials
Contributors
Suggest changes
POST /accounts/{accountPublicId}/credentials
Creates and encrypts new credentials for a specified account public ID.
Token usage: Both a Cloud Manager user token and service token. The service token needs to include the following scopes: credentials:internal. Pass the user token or service token in the Authorization request header.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
accountPublicId |
string |
path |
True |
|
x-simulator |
string |
header |
False |
Request Body
Name | Type | Required | Description |
---|---|---|---|
credentials |
True |
||
credentialsType |
string |
True |
|
extra |
False |
Response
Status: 200, Successful stored generic credentials
Name | Type | Required | Description |
---|---|---|---|
credentialsId |
string |
True |
|
credentialsType |
string |
True |
|
extra |
True |
||
isSimulated |
boolean |
True |
Error
Status: 404, Account not found
Definitions
See Definitions
credentials
extra