logoAccess

Update API key

PATCH
/api/v1/api-keys/{id}

Update API key settings. Use enabled=false to disable a key without deleting it.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique API key ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
name?string

Updated human-readable label for this API key

Length1 <= length
status?string
Value in"active""revoked"

Response Body

Response for status 200

application/json
  1. response
id*string
name*string
status*string
updated_at*string
curl -X PATCH 'https://api.tryaccess.xyz/api/v1/api-keys/key_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "string",  "name": "string",  "status": "string",  "updated_at": "string"}

How is this guide?