Update API-key restrictions
Webhooks and account administration
Update API-key restrictions
Changes supported restrictions on an existing API key.
PATCH
Update API-key restrictions
What this endpoint does
Changes supported restrictions on an existing API key.When to use it
Use it to reduce or adjust access without issuing another key.Before you call
Use API-key administration access and pass a key ID owned by the same tenant account.Money and balance effect
This changes a resource or configuration but does not directly reserve, debit, credit, or settle wallet money.States and completion
A successful response makes the new restrictions effective for later requests. Existing requests are not replayed.Safe retries
PATCH does not use anIdempotency-Key. After an unknown response, list the key and compare its restrictions before retrying the identical update.
Read API keys for the complete workflow.Authorizations
Send the same Wayex API key as Authorization: Bearer <key>.
Path Parameters
Body
application/json
Required array length:
1 - 19 elementsAvailable options:
customers:read, customers:write, routes:read, routes:write, transfers:read, transfers:write, treasury:read, treasury:write, rates:read, webhooks:read, webhooks:write, fees:read, fees:write, keys:read, keys:write, settings:read, settings:write, admin:read, admin:write Required array length:
1 - 50 elementsRequired string length:
1 - 49Pattern:
^[0-9a-fA-F:.]+(\/\d{1,3})?$Response
The updated key.
Minimum string length:
1Minimum string length:
1Available options:
secret, publishable Minimum string length:
1Minimum string length:
1Available options:
active, revoked Minimum string length:
1Available options:
customers:read, customers:write, routes:read, routes:write, transfers:read, transfers:write, treasury:read, treasury:write, rates:read, webhooks:read, webhooks:write, fees:read, fees:write, keys:read, keys:write, settings:read, settings:write, admin:read, admin:write Required string length:
1 - 49Pattern:
^[0-9a-fA-F:.]+(\/\d{1,3})?$
