Orgs / Webhooks
Update a webhook
patch/v2/organizations/{orgId}/webhooks/{webhookId}
Path parameters
webhookIdstring required
Headers
Authorizationstring
For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_
x-cal-secret-keystring
For platform customers - OAuth client secret key
x-cal-client-idstring
For platform customers - OAuth client ID
Request body
Example request
{
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}",
"version": "2021-10-20"
}Response
Example response
{
"status": "success",
"data": {
"payloadTemplate": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}"
}
}