Rotate Personal API Key
Replaces a role's own API key with a new random API key. The new API key is returned as the response body.
Any role can rotate its own API key. The name and
Your HTTP/REST client probably provides HTTP basic authentication support. For example, curl
and all of the Conjur client libraries provide this.
The body of the request must be the empty string. |
URI
|
Example with curl
Suppose your account is “myorg”, you are the user “alice”, your password is “Mypassw0rD1!”, and you want to rotate your API key.
|
Headers
Field |
Description |
Example |
---|---|---|
Authorization |
Supported basic auth credentials: |
Basic ZGFuaWVsOjlwOG5mc2RhZmJw |
Response
Code |
Description |
---|---|
200 |
The response body is the API key. |
401 |
The request lacks valid authentication credentials. |
405 |
The target role does not have an API key |
Example URI
|
URI Parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
account |
String |
Yes |
Organization account name. Example: |
Request
Headers
|
Requests that rotate a role's own API key must use their |
Response 200
Headers
|
Body
|