---
title: "Update OAuth metadata,redirecturi,description and Policy ID"
method: PUT
path: "/tyk/oauth/clients/{apiID}/{keyName}"
tags: ["OAuth"]
---

# Update OAuth metadata,redirecturi,description and Policy ID

`PUT /tyk/oauth/clients/{apiID}/{keyName}`

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

## Path parameters

- `apiID` string, required
- `keyName` string, required

## Request body

- NewClientRequest
  - `api_id` string
  - `client_id` string
  - `description` string
  - `meta_data` object, nullable
  - `policy_id` string
  - `redirect_uri` string
  - `secret` string

## Response `200`

OAuth client updated

- NewClientRequest
  - `api_id` string
  - `client_id` string
  - `description` string
  - `meta_data` object, nullable
  - `policy_id` string
  - `redirect_uri` string
  - `secret` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — malformed request body

## Changes

- **2024-09-18** `111affa17abe` — 1 info
  - endpoint added
- **2022-05-24** `111d8ca21864` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/changes/tyk/oauth/clients/:apiID/:keyName/put.md)

---

[API](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api.md) · [All operations](https://skmtc.dev/tyktechnologies/apis/tyk-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tyktechnologies/tyk-gateway-api/revisions/900d0a33ae1d/schema)
