Update an API key
PUT/api/v1/api-keys/:api_key_id
Updates an API key's name, project scope, or policies. The project scope can be changed to another project, set (scoping a previously unscoped key), or cleared with null (unscoping the key). Only the owner or an admin can update it. A project-scoped credential can only update keys in its own project, and cannot move a key to another project or unscope it.
Request
Responses
- 200
- 400
- 401
- 403
- 404
API key updated successfully
Bad request (invalid project or policy IDs)
Unauthorized
Forbidden (not the key owner or admin, or the credential is scoped to a different project)
API key not found