Keys

Update Key

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.

put/tyk/keys/{keyID}

Query parameters

suppress_reset'1'

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

tagsstring[]
access_rightsobject
aliasstring
allowancenumber double
apply_policiesstring[]
apply_policy_idstring
certificatestring
data_expiresinteger
enable_detail_recordingboolean
expiresinteger
hmac_enabledboolean
hmac_stringstring
id_extractor_deadlineinteger
is_inactiveboolean
last_checkinteger
last_updatedstring
meta_dataobject
oauth_client_idstring
oauth_keysobject
org_idstring
pernumber double
quota_maxinteger
quota_remaininginteger
quota_renewal_rateinteger
quota_renewsinteger
ratenumber double
session_lifetimeinteger
throttle_intervalnumber double
throttle_retry_limitinteger

Response

Key updated

actionstring
keystring

in:body

key_hashstring
statusstring

Changes