cURL
curl --request PUT \ --url https://{tenant}/tyk/oauth/clients/{apiID}/{keyName}/rotate \ --header 'X-Tyk-Authorization: <api-key>'
{ "client_id": "2a06b398c17f46908de3dffcb71ef87df", "description": "google client", "meta_data": { "user_id": "362b3fb9a1d5e4f00017226f5" }, "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?