Skip to content
API Keys

Update an API Key

PUT/api/accounts/{accountId}/api-keys/{apiKeyName}

This endpoint allows you to enable or disable an API key.

Path parameters

  • accountIdrequired string
    The Account id.
  • apiKeyNamerequired string
    The API Key name.

Request body

  • enabledrequired boolean
    Flag indicating the API Key is usable for authentication.

Responses

Request
curl -X PUT https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/api-keys/MyAPIkey \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"enabled": false
}'