PATCH
/
v2
/
oauth-clients
/
{clientId}
curl --request PATCH \
  --url https://api.cal.com/v2/oauth-clients/{clientId} \
  --header 'Content-Type: application/json' \
  --data '{
  "logo": "<string>",
  "name": "<string>",
  "redirectUris": [
    "<string>"
  ],
  "bookingRedirectUri": "<string>",
  "bookingCancelRedirectUri": "<string>",
  "bookingRescheduleRedirectUri": "<string>",
  "areEmailsEnabled": true,
  "areDefaultEventTypesEnabled": 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,
    "bookingRedirectUri": "https://example.com/booking-redirect",
    "bookingCancelRedirectUri": "https://example.com/booking-cancel",
    "bookingRescheduleRedirectUri": "https://example.com/booking-reschedule"
  }
}

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.

Response

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