v51

latestOpenAPI 3.0.3Mozilla Public License Version 2.0raw.githubusercontent.com2026-08-0165205256.0 KB
OAuth

Update OAuth metadata,redirecturi,description and Policy ID

Allows you to update the metadata,redirecturi,description and Policy ID for an OAuth client.

put/tyk/oauth/clients/{apiID}/{keyName}

Path parameters

apiIDstring required

The API id

keyNamestring required

The Client ID

Request body

api_idstring
client_idstring
descriptionstring
meta_dataobject nullable
policy_idstring
redirect_uristring
secretstring

Example request

{
  "api_id": "keyless",
  "client_id": "2a06b398c17f46908de3dffcb71ef87b",
  "description": "google client login",
  "redirect_uri": "https://httpbin.org/ip",
  "secret": "MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
}

Response

OAuth client updated

api_idstring
client_idstring
descriptionstring
meta_dataobject nullable
policy_idstring
redirect_uristring
secretstring

Example response

{
  "api_id": "keyless",
  "client_id": "2a06b398c17f46908de3dffcb71ef87b",
  "description": "google client login",
  "redirect_uri": "https://httpbin.org/ip",
  "secret": "MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
}