Skip to main content
PUT
/
calendars
/
schedules
/
{id}
Update user availability schedule
curl --request PUT \
  --url https://services.leadconnectorhq.com/calendars/schedules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Version: <version>' \
  --data '
{
  "name": "Updated Business Hours",
  "rules": [
    {
      "type": "wday",
      "day": "monday",
      "intervals": [
        {
          "from": "08:00",
          "to": "18:00"
        }
      ]
    }
  ],
  "timezone": "America/Los_Angeles"
}
'
{
  "schedule": {
    "id": "IkqiJlXJ7o9h61tCHHod",
    "name": "Business Hours Schedule",
    "locationId": "IkqiJlXJ7o9h61tCHHod",
    "rules": [
      {
        "type": "wday",
        "intervals": [
          {
            "from": "09:00",
            "to": "17:00"
          }
        ],
        "date": "2023-04-15",
        "day": "monday"
      }
    ],
    "timezone": "America/New_York",
    "dateAdded": "2023-01-15T10:30:00.000Z",
    "dateUpdated": "2023-01-20T14:45:00.000Z",
    "userId": "IkqiJlXJ7o9h61tCHHod",
    "deleted": false,
    "calendarIds": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Headers

Version
enum<string>
required

API Version

Available options:
2021-04-15

Path Parameters

id
string
required

Unique identifier of the schedule to update

Example:

"sch123def456ghi789"

Body

application/json
name
string

Human-readable name for the schedule

Example:

"Updated Business Hours"

rules
object[]

Updated schedule rules defining when the schedule is active

Example:
[
{
"type": "wday",
"day": "monday",
"intervals": [{ "from": "08:00", "to": "18:00" }]
}
]
timezone
string

Updated timezone for the schedule (IANA timezone identifier)

Pattern: ^[A-Za-z_]+/[A-Za-z_]+$
Example:

"America/Los_Angeles"

Response

Schedule updated successfully

schedule
object
required
Last modified on March 4, 2026