Logo
Akamai APIs API Documentation

Update a credential

PUT https://{{host}}/identity-management/v3/api-clients/:clientId/credentials/:credentialId

This operation updates a specific credential for an API client. You can change the expiration date, description, or toggle the activation status. This isn't the same as rotating a credential. For details, see Rotate credentials.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "description": "Update this credential", "expiresOn": "2020-10-11T23:06:59.000Z", "status": "ACTIVE" }



Curl
curl -X PUT 'https://host/identity-management/v3/api-clients/:clientId/credentials/:credentialId?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"description":"Update this credential","expiresOn":"2020-10-11T23:06:59.000Z","status":"ACTIVE"}'

ENDPOINTS