v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-01140309549.5 KB
users
keys

Update a user API key

Update an API key for a user (rename only). Only the authenticated user themselves and server admins have access to this endpoint. When authenticated with a user API key, only that key itself may be updated: a key cannot modify the user's other keys. Authenticate with a JWT (user session token) to update other keys.

patch/v0/users/{user}/keys/{key}

Path parameters

keystring uuid required

The UUID for a user key.

userstring required

The slug or UUID for a user.

Request body

namestring

Response

successful operation

creationstring date-time required
expirationstring date-time required
namestring required
revokedstring date-time
userstring uuid required
uuidstring uuid required