curl --request PATCH \
--url https://api.example.com/api/v1/api-keys/{apiKeyId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"scope": {
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"accountIds": [
"123e4567-e89b-12d3-a456-426614174001"
],
"widgetIds": [
"123e4567-e89b-12d3-a456-426614174002"
],
"environmentIds": [
"123e4567-e89b-12d3-a456-426614174003"
]
}
}Updates an existing API key by its ID
curl --request PATCH \
--url https://api.example.com/api/v1/api-keys/{apiKeyId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"scope": {
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"accountIds": [
"123e4567-e89b-12d3-a456-426614174001"
],
"widgetIds": [
"123e4567-e89b-12d3-a456-426614174002"
],
"environmentIds": [
"123e4567-e89b-12d3-a456-426614174003"
]
}
}The unique identifier of the API key to update
"decafbad-cafe-4dad-f00d-123456789abc"