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.

Create new schedule with specified rules, timezone, account, user and calendar associations.
POST https://services.leadconnectorhq.com/calendars/schedules

Autorizacion

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

Body

rules
object[]
Schedule rules defining when the schedule is active
timezone
string
default:"America/New_York"
required
Timezone for the schedule (IANA timezone identifier)
locationId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
Account ID where this schedule applies
name
string
default:"Business Hours Schedule"
required
Human-readable name for the schedule
userId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
User ID associated with the schedule
calendarIds
string[]
Calendar IDs associated with the schedule

Respuestas

schedule
object
required
Schedule
{}
{}
{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/calendars/schedules' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "rules": [
    {
      "type": "wday",
      "day": "monday",
      "intervals": [
        {
          "from": "09:00",
          "to": "17:00"
        }
      ]
    }
  ],
  "timezone": "America/New_York",
  "locationId": "IkqiJlXJ7o9h61tCHHod",
  "name": "Business Hours Schedule",
  "userId": "IkqiJlXJ7o9h61tCHHod",
  "calendarIds": [
    "WvVX9LpvlBO6K506xLbp",
    "XyZ8MnQrStUvWxYzAbCdEf"
  ]
}'