cURL
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" }
Update an existing API key name for the authenticated organization
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Display name for the API key
API key updated successfully
Was this page helpful?