PUT
/
tyk
/
oauth
/
clients
/
{apiID}
/
{keyName}
Update OAuth metadata,redirecturi,description and Policy ID
curl --request PUT \
  --url https://{tenant}/tyk/oauth/clients/{apiID}/{keyName} \
  --header 'Content-Type: application/json' \
  --header 'X-Tyk-Authorization: <api-key>' \
  --data '{
  "api_id": "b84fe1a04e5648927971c0557971565c",
  "client_id": "2a06b398c17f46908de3dffcb71ef87df",
  "description": "changed description sample",
  "meta_data": {
    "user_id": "362b3fb9a1d5e4f00017226f5"
  },
  "redirect_uri": "https://httpbin.org/ip",
  "secret": "MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
}'
{
  "client_id": "2a06b398c17f46908de3dffcb71ef87df",
  "description": "changed description sample",
  "meta_data": {
    "user_id": "362b3fb9a1d5e4f00017226f5"
  },
  "redirect_uri": "https://httpbin.org/ip",
  "secret": "MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"
}

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Path Parameters

apiID
string
required

The API id

keyName
string
required

The Client ID

Body

application/json
api_id
string
Example:

"keyless"

client_id
string
Example:

"2a06b398c17f46908de3dffcb71ef87b"

description
string
Example:

"google client login"

meta_data
object | null
policy_id
string
redirect_uri
string
Example:

"https://httpbin.org/ip"

secret
string
Example:

"MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"

Response

OAuth client updated

api_id
string
Example:

"keyless"

client_id
string
Example:

"2a06b398c17f46908de3dffcb71ef87b"

description
string
Example:

"google client login"

meta_data
object | null
policy_id
string
redirect_uri
string
Example:

"https://httpbin.org/ip"

secret
string
Example:

"MmQwNTI5NGQtYjU0YS00NjMyLWIwZjktNTZjY2M1ZjhjYWY0"