cURL
curl --request PATCH \ --url https://api.example.com/v1/api-keys/{key_name} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "expires_at": "2023-11-07T05:31:56Z" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "status": "ACTIVE", "name": "<string>", "prefix": "<string>" }
The new name for the API key
The new expiration date and time for the API key
API key updated successfully
ACTIVE
EXPIRED
REVOKED