Skip to main content

Rotate API key

Give a key a new token, so the old one stops working at once. The key keeps its name, scopes and expiry. Needs the same recent second factor as creating one

POST /auth/apikeys/{id}/rotate

note

SDK method: rotateAPIKey Security: authenticated (policy: platform.view)

Attributes​

Attributes (1)
AttributeTypeRequiredDescription
idstringYesPath parameter.

Response​

200 OK — Returns a ApiKeyIssued object.