PATCH
/
organizations
/
{organizationId}
/
api-keys
/
{apiKeyId}
curl --request PATCH \
  --url https://api.icepanel.io/v1/organizations/{organizationId}/api-keys/{apiKeyId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "permission": "billing"
}'
{
  "apiKey": {
    "name": "<string>",
    "permission": "billing",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "id": "<string>",
    "organizationId": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "user",
    "updatedById": "<string>"
  }
}

Headers

Authorization
string
required

Path Parameters

organizationId
string
required
apiKeyId
string
required

Body

application/json
name
string
permission
enum<string>
Available options:
billing,
read,
write,
admin

Response

200
application/json
OK
apiKey
object
required