Api Keys
Rotate API Key
Rotate the secret of a given API key under an organization.
Organization Owners can rotate any API key inside the Organization.
To learn more, see Organization, Project, and Database Access Overview.
post/v4/organizations/{organizationId}/apikeys/{ApiKeyId}/rotate
Request
- Base URLhttps://cloudapi.cloud.couchbase.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"secret": "jawuXxSXYaWdr@uSSphmV1aJ4siKKcHHXnhhtbE8h8H!O2nbIQJ62M40stDATiBp"
}Response
Successfully rotated the API key.
Example response
{
"secretKey": "<YOUR_SECRET_KEY_HERE>",
"token": "QktxVUtFU1dKV1FlMmxwbzJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjekJVYWZPY3lqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhAenRib3IhVQ=="
}Changes
No recorded changes to this operation across all 5 revisions of this API.