Skip to main content

Update API token

PUT 

/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

Path Parameters

    token stringrequired

Body

required

updateApiTokenSchema

    expiresAt date-timerequired

    The new time when this token should expire.

    Example: 2023-09-04T11:26:24+02:00

Responses

This response has no body.

Loading...