Skip to main content

Update API token

PUT 

<your-unleash-url>/api/admin/api-tokens/: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.

Request

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/api-tokens/:token' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"expiresAt": "2023-09-04T11:26:24+02:00"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "expiresAt": "2023-09-04T11:26:24+02:00"
}
ResponseClear

Click the Send API Request button above and see the response here!