cURL
curl --request PATCH \ --url https://api.uplint.dev/api/v1/api-keys/{api_key_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Backend Service v2", "scopes": [ "upload", "download", "metadata", "delete" ] } '
{ "status": "SUCCESS", "message": "<string>", "data": { "api_key_id": "<string>", "tenant_id": "<string>", "name": "<string>", "key_prefix": "<string>", "scopes": [ "upload" ], "status": "active", "expires_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "timestamp": "2023-11-07T05:31:56Z" }
Update the name, scopes, status, or metadata of an existing API key.
Pass an API key or JWT token. API keys can be sent as Authorization: Bearer <key> or Authorization: <key>.
Authorization: Bearer <key>
Authorization: <key>
The API key's unique identifier.
1 - 255
Permission scope for an API key. admin grants all permissions.
admin
upload
download
metadata
delete
active
disabled
revoked
API key updated.
SUCCESS
Show child attributes
Was this page helpful?