Management APIs
cURL
curl --request PATCH \ --url https://api.basic.tech/project/{id}/key/{key_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "<string>", "roles": "<string>" }'
{ "key": { "id": "<string>", "label": "<string>", "roles": "<string>", "updated_at": "2023-11-07T05:31:56Z" } }
Updates the label and/or roles of an existing API key
JWT Authorization Token header using the Bearer scheme
Unique identifier of the project
Unique identifier of the API key to update
API key updated successfully