Keys

Set policies for a hashed key.

Changed on

This will set policies to a hashed key.

post/tyk/keys/policy/{keyID}

Request

  • Base URL
    https://localhost:8080
  • URL
    https://localhost:8080/tyk/keys/policy/{keyID}
  • Auth
    API key in header X-Tyk-Authorization

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"
}

Changes