Update credentialsUpdate one or more credentials in Aspire. Updates will be treated as partial updates rather than overwrites. If a field is not present in the input, any previous value will remain after the update. If you wish to "delete" a value, pass a value of null Panel |
---|
borderColor | black |
---|
bgColor | #fafafb |
---|
| PUT /aspire_api/credentials/:id
PUT /aspire_api/credentials
|
Path and Request Body Parameters
Name | Type | Required | Description |
---|
id | string | Required | The identifier of the credential to update | type | string | Optional | The type of credential | description | string | Optional | An optional description of the credential |
Other parameters passed in the request body will depend on the type of credential being created - see Add credential(s) above Examples Update a single credential Code Block |
---|
| PUT /aspire_api/credentials/AAABcID5GBc%3D
{
"id": "AAABcID5GBc=",
"type": "filesystem"
"description": "Europe Net Appliance"
...
} |
Update multiple credentials Code Block |
---|
| PUT /aspire_api/credentials
{
"AAABcID5GBc=": {
"id": "AAABcID5GBc=",
"type": "filesystem"
"description": "Europe Net Appliance"
...
},
"AAABcIueWUc=": {
"id": "AAABcIueWUc=",
"type": "sharepoint"
"description": "SP Online"
...
}
} |
Response Code Block |
---|
| {
"credential": [{
"id": "AAABcID5GBc=",
"type": "filesystem"
"description": "Europe Net Appliance"
...
},
{
"id": "AAABcIueWUc=",
"type": "sharepoint"
"description": "SP Online"
...
}],
"message": "optional response message"
} |
Status Response code | Description |
---|
201 | Created | 404 | Not found - a given credential identifier was not found | 406 | Not acceptable - there was an issue validating the input |
|