Create a Schedule

Endpoint: POST /schedules

Description: Create a new schedule. Some fields become required based on configuration (e.g., repeating schedules or all-day events).

Note:

  • Dates use MM/DD/YYYY format.
  • Time uses HH:mm (24-hour format).
  • If no timezone is provided, the company timezone will be used.

Request Body:

ParameterTypeDescription
assigned_by
required
integerID of the active user creating the schedule.
event_pid
optional
stringExternal or parent event ID.
title
required
stringSchedule title.
description
optional
stringSchedule description.
job_id
optional
integerAssociated job ID.
timezone
optional
stringTimezone for the schedule. Defaults to company timezone if not provided. Example: America/Phoenix.
repeat
required
booleanIndicates whether the schedule repeats.
all_day
required
booleanWhether the schedule lasts all day.
color
required
stringSchedule color.
user_ids
required
arrayIDs of active users assigned to the schedule.
publish
optional
booleanWhether the schedule is published immediately.
start_date
required
string (date)Schedule start date in MM/DD/YYYY format.
end_date
required
string (date)Schedule end date in MM/DD/YYYY format.
start_time
optional
string (time)Start time in HH:mm format. Required unless all_day is true.
end_time
optional
string (time)End time in HH:mm format. Required unless all_day is true.
use_different_address
optional
booleanWhether to use a custom address instead of the job address.
street
optional
stringStreet address when using a different address.
city
optional
stringCity when using a different address.
state
optional
stringState when using a different address.
country
optional
stringCountry when using a different address.
zip_code
optional
stringZIP or postal code when using a different address.
repeat_type
optional
stringRepeat type (e.g., daily, weekly). Required when repeat is true.
repeat_end_date
optional
string (date)End date for repetition in MM/DD/YYYY format. Required when repeat is true.
weeks
optional
stringComma-separated weekdays (e.g., monday,thursday). Required when repeat_type is weekly.

Request Body Sample:

{
    "assigned_by": 679,
    "title": "Schedule Try",
    "description": "Description here",
    "job_id": 5118,
    "timezone": "America/Phoenix",
    "repeat": true,
    "all_day": false,
    "color": "black",
    "user_ids": [680],
    "publish": true,
    "start_date": "05/01/2024",
    "end_date": "05/02/2024",
    "start_time": "06:00",
    "end_time": "05:00",
    "use_different_address": true,
    "street": "Street",
    "city": "City",
    "state": "State",
    "country": "Country",
    "zip_code": "Zipcode",
    "repeat_type": "weekly",
    "repeat_end_date": "05/29/2024",
    "weeks": "monday,thursday"
}

Language
URL
Click Try It! to start a request and see the response here!