Update API key for a subaccount

Updates the settings of an existing API key of a subaccount by ID.

Use this operation to change the key's name, enabled status or expiration date. When you set enabled to false, the credential stops authenticating requests while it remains disabled.

⚠️

Access requirements

The request must be authenticated with the parent account's API key. Subaccount key management must be temporarily enabled in the web interface, with the IP Whitelist active and the application's outbound IP authorized.

Related content

Guides

Webhooks

Path Params
string
required

Unique subaccount identifier in Asaas

string
required

API key ID

Body Params
string
required

API key name

boolean
required

Indicates whether the API key is enabled

date-time
required

API key expiration date

Responses

404

Not found

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json