Expire API key
PUT
CoderSessionTokenheader
Coder-Session-Token<token>user*stringUser ID, name, or me
keyid*stringKey ID
Format
stringNo 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