Rotate the workspace default key (new secret returned once)
Rotate the workspace default key (new secret returned once): CustomDomain™ API reference in the tenancy group. Covers parameters, request body and responses.
Mints a new default key and revokes the old active one in one transaction: the old key stops authenticating at once, and there is never a moment with two active default keys or none. The workspace's other keys are untouched. With no active default key it simply creates one. Same provision secret guard as POST /tenants/{tenant_id}/default-key.
Authorization
provisionSecret Narrow secret held by the customer console's server, for signup provisioning and its other server to server calls (also accepted as a Bearer token, except on POST /audit, where a Bearer is always a tenant credential).
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/tenants/string/default-key:rotate"{ "key_id": "string", "prefix": "string", "created": true, "api_key": "string"}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}