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": [ "<string>" ], "policy": "<string>" } '
{ "action": "modified", "key": "b13d928b9972bd18", "key_hash": "<string>", "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?