v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Webhooks

Update an OAuth client

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

Requires admin or owner role permissions.

put/webhook_subscriptions/oauth_clients/{id}

Path parameters

idstring required

The ID of the resource.

Headers

Acceptstring required

The Accept header is used as a versioning header.

Content-Type'application/json' required

Request body

Example request

{
  "oauth_client": {
    "name": "Updated ServiceNow Integration",
    "client_id": "oauth-client-id",
    "client_secret": "oauth-secret-id",
    "scope": "read write admin",
    "token_url": "https://foo.oauth-server.com/oauth_token.do",
    "grant_type": "client_credentials"
  }
}

Response

OAuth client updated successfully

Example response

{
  "oauth_client": {
    "id": "AGMEB7F7YJYELCPG4Y5YWMYGXE",
    "type": "oauth_client",
    "name": "PagerDuty Webhook Integration",
    "client_id": "oauth-client-id",
    "scope": "read write",
    "token_url": "https://foo.oauth-server.com/oauth_token.do",
    "grant_type": "client_credentials",
    "status": "active"
  }
}