Update notes, active status, or rate limit for an existing sub-key.
x-api-key header.| Field | Editable | Notes |
|---|---|---|
notes | Yes | Update the label for any sub-key |
active | Yes | Set to false to deactivate, true to reactivate |
per_interval | Yes | Cannot exceed the master key’s per_interval. If omitted, current value is kept. |
api_key | No | Read-only identifier |
master | No | Cannot promote or demote a key |
To access the API, provide your API key in x-api-key.
Update API key payload. api_key, notes, and active are required. Optional per_interval updates the sub-key rate limit; if omitted, current per_interval is retained.
Request payload to update an existing API key.
API key to edit.
"ad18e456-0dd7-45e1-b094-43a0361aedfa"
Notes associated with the API key.
1 - 250"My API key"
Set to true to keep or mark the target sub-key active.
Optional per-interval request limit for the target sub-key. If not provided, current value is not changed. It cannot exceed the master key's per_interval.
x >= 125
API key succesfully updated.
Response payload for a successful API key update.
A UUID.
"7d44db58-5de3-4e92-a2fb-8325d12c2e8b"
true
Notes associated with the API key.
1 - 250"My API key"
false
x >= 125