---
title: "Update an OAuth client"
method: PUT
path: "/webhook_subscriptions/oauth_clients/{id}"
tags: ["Webhooks"]
---

# Update an OAuth client

`PUT /webhook_subscriptions/oauth_clients/{id}`

Update an existing OAuth client. Any change will trigger token validation with the OAuth server.

Requires admin or owner role permissions.

## Path parameters

- `id` string, required

## Headers

- `Accept` string, required
- `Content-Type` 'application/json', required

## Request body

- UpdateOAuthClientRequest
  - `oauth_client` object, required
    - `name` string — A human-readable name for the OAuth client
    - `client_id` string — The OAuth client ID provided by the OAuth server
    - `client_secret` string — The OAuth client secret provided by the OAuth server
    - `scope` string — The OAuth scopes requested for this client
    - `token_url` string, uri — The OAuth token endpoint URL
    - `grant_type` 'client_credentials' — The OAuth grant type (currently only client_credentials is supported)

## Response `200`

OAuth client updated successfully

- object
  - `oauth_client` OAuthClient
    - `id` string — The ID of the OAuth client
    - `type` 'oauth_client', required — The type of object being created
    - `name` string, required — A human-readable name for the OAuth client
    - `client_id` string, required — The OAuth client ID provided by the OAuth server
    - `scope` string, nullable — The OAuth scopes requested for this client
    - `token_url` string, uri, required — The OAuth token endpoint URL
    - `grant_type` 'client_credentials', required — The OAuth grant type (currently only client_credentials is supported)
    - `status` 'active' | 'error' — The current status of the OAuth client

## Other responses

- `400` — Caller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will *not* work.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `403` — Caller is not authorized to view the requested resource. While your authentication is valid, the authenticated user or token does not have permission to perform this action.
- `404` — The requested resource was not found.

---

[API](https://skmtc.net/pagerduty/apis/rest-api.md) · [All operations](https://skmtc.net/pagerduty/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pagerduty/rest-api/versions/b679a8f3f02c/schema)
