Skip to main content
PATCH
Update organization team workflow

Headers

Authorization
string

For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_

x-cal-secret-key
string

For platform customers - OAuth client secret key

x-cal-client-id
string

For platform customers - OAuth client ID

Path Parameters

teamId
number
required
workflowId
number
required
orgId
number
required

Body

application/json
name
string

Name of the workflow

Example:

"Platform Test Workflow"

activation
object

Activation settings for the workflow

trigger
Before Event · object

Trigger configuration for the event-type workflow, allowed triggers are beforeEvent,eventCancelled,newEvent,afterEvent,rescheduleEvent,afterHostsCalVideoNoShow,afterGuestsCalVideoNoShow,bookingRejected,bookingRequested,bookingPaymentInitiated,bookingPaid,bookingNoShowUpdated

steps
(Email Address · object | Email Attendee · object | Email Host · object | SMS Attendee · object | WhatsApp Number · object | WhatsApp Attendee · object | SMS Number · object | Paths (existing step) · object)[]

Steps to execute as part of the event-type workflow, allowed steps are email_host,email_attendee,email_address,sms_attendee,sms_number,whatsapp_attendee,whatsapp_number,cal_ai_phone_call. If the workflow has conditional paths, the array must also include its existing "paths" step and every step that belongs to a path, using the ids returned by GET — paths can only be edited in the Cal.com app.

Minimum array length: 1

Response

200 - application/json
status
enum<string>
required

Indicates the status of the response

Available options:
success,
error
Example:

"success"

data
object[]
required

workflow