Update an API key
Update an API key’s name.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
API key ID
Body
New API key name
1 - 255"new-api-name"
Response
API key updated
When the API key was created
When the API key was deleted (soft-deleted). Null for keys that have not been deleted.
When the API key expires
Unique API key identifier
"ckv9w8q2f000001l5r3j7k9m4"
When the API key last authenticated a request, accurate to within about 20 minutes. Null if the key has not been used since last-use tracking began.
Masked version of the API key
"sk_1234...abcd"
Label for the API key. API keys are not addressable by name; use the ID or key identifier for stable references.
"production"
Project identifier for project-scoped API keys. Null means org-wide.
"proj_abc123"
Project name for project-scoped API keys. Null means the key is org-wide or the project name is unavailable.
"Production"
Permissions granted to a scoped API key. Absent for an ordinary key, which keeps unrestricted access within its organization or project.