Update Key
PUT {{baseUrl}}/tyk/keys/:keyID?suppress_reset=1
You can also manually add keys to Tyk using your own key-generation algorithm. It is recommended if using this approach to ensure that the OrgID being used in the API Definition and the key data is blank so that Tyk does not try to prepend or manage the key in any way.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
suppress_reset | number | Adding the suppress_reset parameter and setting it to 1, will cause Tyk not to reset the quota limit that is in the current live quota manager. By default Tyk will reset the quota in the live quota manager (initialising it) when adding a key. Adding the suppress_reset flag to the URL parameters will avoid this behaviour. |
Request Body
{"quota_max"=>60, "quota_renews"=>1406121006, "quota_renewal_rate"=>60, "allowance"=>100, "rate"=>100, "per"=>5, "org_id"=>"53ac07777cbb8c2d53000002"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"action":"updated","status":"ok"}