Update an API credential
How to update an existing API credential via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X PATCH \
'https://provisioning.commercelayer.io/api/api_credentials/xYZkjABcde' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer {{your_access_token}}' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "api_credentials",
"id": "xYZkjABcde",
"attributes": {
"reference": "ANY-EXTERNAL-REFEFERNCE"
},
"relationships": {
"role": {
"data": {
"type": "roles",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated