API tokens

Update API token

Updates an existing API token with a new expiry date. The token path parameter is the token's secret. If the token does not exist, this endpoint returns a 200 OK, but does nothing.

put/api/admin/api-tokens/{token}

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/api-tokens/{token}
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

tokenstring required

Request body

expiresAtstring date-time required

The new time when this token should expire.

Example request

{
  "expiresAt": "2023-09-04T11:26:24+02:00"
}

Response

This response has no body.

Changes

No recorded changes to this operation across all 7 revisions of this API.