cURL
curl --request PUT \ --url https://{tenant}/tyk/oauth/clients/{apiID}/{keyName}/rotate \ --header 'X-Tyk-Authorization: <api-key>'
{ "api_id": "keyless", "client_id": "2a06b398c17f46908de3dffcb71ef87b", "description": "google client login", "meta_data": {}, "policy_id": "<string>", "redirect_uri": "https://httpbin.org/ip", "secret": "MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0" }
Generate a new secret
Api key
The API id
The Client ID
New secret has been created
"keyless"
"2a06b398c17f46908de3dffcb71ef87b"
"google client login"
Show child attributes
"https://httpbin.org/ip"
"MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
Was this page helpful?