Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Update Event notification by id
PUT https://services.leadconnectorhq.com/calendars/{calendarId}/notifications/{notificationId}

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

calendarId
string
required
notificationId
string
required

Body

receiverType
string
Notification recipient type Posibles valores: ‘contact’, ‘guest’, ‘assignedUser’, ‘emails’, ‘phoneNumbers’, ‘business’
additionalEmailIds
string[]
Additional email addresses to receive notifications.
additionalPhoneNumbers
string[]
Additional phone numbers to receive notifications.
selectedUsers
string[]
Selected users for in-App and business email notifications. Supports user IDs and special keyword “sub_account_admin”
channel
string
Notification channel Posibles valores: ‘email’, ‘inApp’, ‘sms’, ‘whatsapp’
notificationType
string
Notification type Posibles valores: ‘booked’, ‘confirmation’, ‘cancellation’, ‘reminder’, ‘followup’, ‘reschedule’
isActive
boolean
Is the notification active
deleted
boolean
Marks the notification as deleted (soft delete)
templateId
string
Template ID for email notification
body
string
Body for email notification. Not necessary for in-App notification
subject
string
Subject for email notification. Not necessary for in-App notification
afterTime
object[]
Specifies the time after which the follow-up notification should be sent. This is not required for other notification types.
beforeTime
object[]
Specifies the time before which the reminder notification should be sent. This is not required for other notification types.
fromAddress
string
From address for email notification
fromNumber
string
from number for sms notification
fromName
string
From name for email/sms notification

Respuestas

message
string
required
Result of delete/update operation
{
  "message": "string"
}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/calendars/YOUR_calendarId/notifications/YOUR_notificationId' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "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"
}'