Update an API key’s name, roles, or capabilities. When roles or capabilities are provided, they fully replace the existing values. An API key cannot update itself.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
API key identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
New name for the API key
1 - 255"Updated Key Name"
New list of role IDs. Replaces all existing roles when provided
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$New list of capabilities. Replaces all existing capabilities when provided
Default Response
Confirmation message
"API key \"My Key\" updated"