Skip to main content
PUT
/
v1
/
api-keys
/
{api_key_id}
Update API Key
curl --request PUT \
  --url https://api.deepxl.ai/v1/api-keys/{api_key_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": 123,
  "name": "Updated API Key Name",
  "apiKey": "dxl_1234567890abcdef",
  "createdOn": 1725795600,
  "createdOnISO": "2024-09-08T10:00:00",
  "modifiedOn": 1725811800,
  "modifiedOnISO": "2024-09-08T14:30:00",
  "createdBy": "user_123abc",
  "lastUsed": 1725811800,
  "lastUsedISO": "2024-09-08T14:30:00",
  "scope": "analysis:read,analysis:write"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

api_key_id
string
required

Body

application/json
name
string | null

Display name for the API key

Response

API key updated successfully