Modify an existing schedule by updating its rules, timezone, and name All fields are optional - only provided fields will be updated.

http
PUT https://services.leadconnectorhq.com/calendars/schedules/{id}

Authorization

NameTypeRequiredExampleDescription
AuthorizationstringYesBearer token generated from the Leadway portal. See Authentication.
VersionstringYes2021-07-28API version.

Path parameters

NameTypeRequiredExampleDescription
idstringYessch123def456ghi789Unique identifier of the schedule to update

Body

NameTypeRequiredExampleDescription
namestringNoUpdated Business HoursHuman-readable name for the schedule
  • rules (object[]): Updated schedule rules defining when the schedule is active

    • type (string, required): Type of schedule rule - weekday (recurring) or date (specific date) Possible values: 'wday', 'date' Example: wday

    • intervals (object[], required): Time intervals for the rule (e.g., 9 AM to 5 PM)

      • from (string, required): Start time in HH:MM format (24-hour format) Example: 09:00

      • to (string, required): End time in HH:MM format (24-hour format) Example: 17:00

    • date (string): Specific date in YYYY-MM-DD format (only for date-type rules) Example: 2023-04-15

    • day (string): Day of week (only for weekday-type rules) Possible values: 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' Example: monday

NameTypeRequiredExampleDescription
timezonestringNoAmerica/Los_AngelesUpdated timezone for the schedule (IANA timezone identifier)

Responses

200 - Schedule updated successfully
  • schedule (object, required): Schedule

json
{}
400 - Invalid request parameters
json
{}
401 - User not authenticated
json
{}
404 - Schedule with the specified ID was not found
422 - Validation errors in schedule rules or conflicting data
json
{}

Example

curl -X PUT 'https://services.leadconnectorhq.com/calendars/schedules/YOUR_id' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Updated Business Hours",
  "rules": [
    {
      "type": "wday",
      "day": "monday",
      "intervals": [
        {
          "from": "08:00",
          "to": "18:00"
        }
      ]
    }
  ],
  "timezone": "America/Los_Angeles"
}'

Last updated October 26, 2026

Was this page helpful?