Skip to content
Skip to Content
Coder Docs

Expire API key

PUT
/api/v2/users/{user}/keys/{keyid}/expire

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

user*string

User ID, name, or me

keyid*string

Key ID

Formatstring

Response Body

No Content

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X PUT \	"$CODER_URL/api/v2/users/{user}/keys/{keyid}/expire" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response
Empty