Change an API key
PATCH
Changes what this key may do, or its spending ceilings. Only the fields sent change; send null to clear a limit or to give the key back full, unlevelled access.
apiKeyheader
AuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
id*stringapplication/json- body
level?|nullperOrderLimit?|Largest single order this key may place, in cents. null clears it
dailyLimit?|Most this key may spend in one UTC day, in cents. null clears it
Success
application/json- response
Success
id*stringname*stringprefix*stringThe first characters of the key, to recognise it by
level?stringWhat this key may do: 'read' reads only, 'manage' also changes what you already own, 'buy' also spends money. Absent means no ceiling at all, the same as every key made before this field existed
Value in
"read""manage""buy"perOrderLimit?integerLargest single order this key may place, in cents
Range
0 <= value <= 100000000dailyLimit?integerMost this key may spend in one UTC day, in cents
Range
0 <= value <= 100000000lastUsedAt*|Format
date-timecreatedAt*stringFormat
date-timecurl -X PATCH "https://example.com/v1/api-keys/key_01K6XJ4Q8ZT3M9R5V2B7WDHNCA" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "key_01K6XJ4Q8ZT3M9R5V2B7WDHNCA", "name": "production", "prefix": "rhq_test_k3J9xQ", "level": "read", "perOrderLimit": 500000, "dailyLimit": 500000, "lastUsedAt": null, "createdAt": "2026-10-07T11:04:31.000Z"}