cURL
curl --request POST \ --url https://{tenant}/tyk/keys/policy/{keyID} \ --header 'Content-Type: application/json' \ --header 'X-Tyk-Authorization: <api-key>' \ --data '{ "apply_policies": [ "5ead7120575961000181867e" ], "policy": "" }'
{ "action": "updated", "key": "5e9d9544a1dcd60001d0ed207eb558517c3c48fb826c62cc6f6161eb", "status": "ok" }
This will set policies to a hashed key.
Api key
Name to give the custom key.
Updated hashed key.
"modified"
"b13d928b9972bd18"
"ok"
Was this page helpful?