Business CalendarsUpdate user availability schedule
Business Calendars
PUT
Update user availability schedule
Modify an existing schedule by updating its rules, timezone, and name All fields are optional - only provided fields will be updated.
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
Name
Type
Required
Example
Description
Authorization
string
Yes
Bearer token generated from the Leadway portal. See Authentication.
Version
string
Yes
2021-07-28
API version.
Path parameters
Name
Type
Required
Example
Description
id
string
Yes
sch123def456ghi789
Unique identifier of the schedule to update
Body
Name
Type
Required
Example
Description
name
string
No
Updated Business Hours
Human-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
Name
Type
Required
Example
Description
timezone
string
No
America/Los_Angeles
Updated 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 found422 - Validation errors in schedule rules or conflicting data