curl --request PUT \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/notifications/{notificationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"receiverType": "contact",
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"selectedUsers": [
"userId1",
"userId2",
"sub_account_admin"
],
"channel": "email",
"notificationType": "booked",
"isActive": true,
"deleted": false,
"templateId": "<string>",
"body": "<string>",
"subject": "<string>",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"fromAddress": "<string>",
"fromNumber": "<string>",
"fromName": "<string>"
}
'{
"message": "<string>"
}Update Event notification by id
curl --request PUT \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/notifications/{notificationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"receiverType": "contact",
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"selectedUsers": [
"userId1",
"userId2",
"sub_account_admin"
],
"channel": "email",
"notificationType": "booked",
"isActive": true,
"deleted": false,
"templateId": "<string>",
"body": "<string>",
"subject": "<string>",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"fromAddress": "<string>",
"fromNumber": "<string>",
"fromName": "<string>"
}
'{
"message": "<string>"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-04-15 Notification recipient type
contact, guest, assignedUser, emails, phoneNumbers, business Additional email addresses to receive notifications.
["example1@email.com", "example2@email.com"]Additional phone numbers to receive notifications.
["+919876744444", "+919876744445"]Selected users for in-App and business email notifications. Supports user IDs and special keyword "sub_account_admin"
["userId1", "userId2", "sub_account_admin"]Notification channel
email, inApp, sms, whatsapp Notification type
booked, confirmation, cancellation, reminder, followup, reschedule Is the notification active
Marks the notification as deleted (soft delete)
Template ID for email notification
Body for email notification. Not necessary for in-App notification
Subject for email notification. Not necessary for in-App notification
Specifies the time after which the follow-up notification should be sent. This is not required for other notification types.
Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]Specifies the time before which the reminder notification should be sent. This is not required for other notification types.
Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]From address for email notification
from number for sms notification
From name for email/sms notification
Successful response
Result of delete/update operation
Was this page helpful?