Logo
Akamai APIs API Documentation

Create an access key version

POST https://{{host}}/cam/v1/access-keys/:accessKeyUid/versions

Rotates an access key to a new version. You should only need to do this if your cloud provider credentials have changed, for example because they've expired or been compromised. Only two versions of an access key can exist and be active at the same time. If you have two access key versions you have to delete one of them before you can create another version.

 

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





Curl
curl -X POST 'https://undefined/cam/v1/access-keys/:accessKeyUid/versions?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"cloudAccessKeyId":"AKAMAICAMKEYID2EXAMPLE","cloudSecretAccessKey":"cDdrcAMtrIAvN/h7dF/bAxLfiANAXAMPLEKEY"}'

ENDPOINTS