Update Key

PUT {{baseUrl}}/tyk/keys/:keyID?suppress_reset=1&hashed=<boolean>

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

KeyDatatypeRequiredDescription
suppress_resetnumberAdding 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.
hashedstringUse the hash of the key as input instead of the full key

Request Body

{"tags"=>["<string>", "<string>"], "access_rights"=>{"adipisicing_440"=>{"allowed_urls"=>[{"methods"=>["<string>", "<string>"], "url"=>"<string>"}, {"methods"=>["<string>", "<string>"], "url"=>"<string>"}], "api_id"=>"<string>", "api_name"=>"<string>", "limit"=>{"per"=>"<double>", "quota_max"=>"<long>", "quota_remaining"=>"<long>", "quota_renewal_rate"=>"<long>", "quota_renews"=>"<long>", "rate"=>"<double>", "set_by_policy"=>"<boolean>", "throttle_interval"=>"<double>", "throttle_retry_limit"=>"<long>"}, "versions"=>["<string>", "<string>"]}}, "alias"=>"<string>", "allowance"=>"<double>", "apply_policies"=>["<string>", "<string>"], "apply_policy_id"=>"<string>", "basic_auth_data"=>{"hash_type"=>"<string>", "password"=>"<string>"}, "certificate"=>"<string>", "data_expires"=>"<long>", "enable_detail_recording"=>"<boolean>", "expires"=>"<long>", "hmac_enabled"=>"<boolean>", "hmac_string"=>"<string>", "id_extractor_deadline"=>"<long>", "is_inactive"=>"<boolean>", "jwt_data"=>{"secret"=>"<string>"}, "last_check"=>"<long>", "last_updated"=>"<string>", "monitor"=>{"trigger_limits"=>["<double>", "<double>"]}, "oauth_client_id"=>"<string>", "oauth_keys"=>{"adipisicing9"=>"<string>", "anim_c4"=>"<string>", "quise60"=>"<string>"}, "org_id"=>"<string>", "per"=>"<double>", "quota_max"=>"<long>", "quota_remaining"=>"<long>", "quota_renewal_rate"=>"<long>", "quota_renews"=>"<long>", "rate"=>"<double>", "session_lifetime"=>"<long>", "throttle_interval"=>"<double>", "throttle_retry_limit"=>"<long>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;action&quot;:&quot;\u003cstring\u003e&quot;,&quot;key&quot;:&quot;\u003cstring\u003e&quot;,&quot;key_hash&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}