api-keys
Update API Token
Changed onUpdates the name and status of an existing API token. Only the token owner can update their tokens. Token values cannot be changed after creation.
Security Note: Session-only authentication required to prevent token-based privilege escalation.
put/bodhi/v1/tokens/{id}
Request
- Base URL: http://localhost:1135
- URL: http://localhost:1135/bodhi/v1/tokens/{id}
- Auth: OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback, scopes: resource_power_user)
Path parameters
idstring required
Unique identifier of the API token to update
Request body
Example request
{
"name": "Updated Token Name",
"status": "inactive"
}Response
Token updated successfully
Changes
- warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- warning
- info
removed
subschema #2from the//////response propertyoneOflist for the response status
- info