PATCH
/
v2
/
oauth-clients
/
{clientId}
Update an OAuth client
curl --request PATCH \
  --url https://api.cal.com/v2/oauth-clients/{clientId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "logo": "<string>",
  "name": "<string>",
  "redirectUris": [
    "<string>"
  ],
  "bookingRedirectUri": "<string>",
  "bookingCancelRedirectUri": "<string>",
  "bookingRescheduleRedirectUri": "<string>",
  "areEmailsEnabled": true,
  "areDefaultEventTypesEnabled": true,
  "areCalendarEventsEnabled": true
}'
{
  "status": "success",
  "data": {
    "id": "clsx38nbl0001vkhlwin9fmt0",
    "name": "MyClient",
    "secret": "secretValue",
    "permissions": [
      "BOOKING_READ",
      "BOOKING_WRITE"
    ],
    "logo": "https://example.com/logo.png",
    "redirectUris": [
      "https://example.com/callback"
    ],
    "organizationId": 1,
    "createdAt": "2024-03-23T08:33:21.851Z",
    "areEmailsEnabled": true,
    "areDefaultEventTypesEnabled": true,
    "areCalendarEventsEnabled": true,
    "bookingRedirectUri": "https://example.com/booking-redirect",
    "bookingCancelRedirectUri": "https://example.com/booking-cancel",
    "bookingRescheduleRedirectUri": "https://example.com/booking-reschedule"
  }
}

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Path Parameters

clientId
string
required

Body

application/json
name
string
redirectUris
string[]
bookingRedirectUri
string
bookingCancelRedirectUri
string
bookingRescheduleRedirectUri
string
areEmailsEnabled
boolean
areDefaultEventTypesEnabled
boolean

If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user.

areCalendarEventsEnabled
boolean

If true and if managed user has calendar connected, calendar events will be created. Disable it if you manually create calendar events. Default to true.

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required