Edit Access Key
Change the description of one of your access keys.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/users/accessKeys/:accessKeyId | PATCH | No |
Updates the description of an access key you own. The description is the only mutable attribute - the key pair and the expiration date are fixed at creation. To change those, create a new key and delete the old one.
Path Parameters
accessKeyId
string (UUID) required
The key's
id from List Access Keys.Request Body
description
string | null
New label of at most 500 characters. Surrounding whitespace is trimmed;
null or an empty string clears it.Example
{
"description": "CI deploy key (rotated 2025-01)"
}
Response
Returns the updated key:
{
"id": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
"accessKey": "AKIAIOSFODNN7EXAMPLE",
"description": "CI deploy key (rotated 2025-01)",
"createdAt": "2025-01-15T10:30:00Z",
"expirationDate": "2025-07-15T00:00:00Z"
}
Errors
| Status | Reason |
|---|---|
400 | accessKeyId is not a UUID, or description is longer than 500 characters |
404 | Access key not found (or not owned by you) |