v51

latestOpenAPI 3.0.3Mozilla Public License Version 2.0raw.githubusercontent.com2026-08-0165205256.0 KB
Keys

Set policies for a hashed key.

This will set policies to a hashed key.

post/tyk/keys/policy/{keyID}

Path parameters

keyIDstring required

Name to give the custom key.

Request body

apply_policiesstring[] nullable
policystring

Response

Updated hashed key.

actionstring
keystring
key_hashstring
statusstring

Example response

{
  "action": "modified",
  "key": "b13d928b9972bd18",
  "status": "ok"
}