Skip to main content
POST
Create Schedule

Headers

auth
string
required
Example:

"auth"

Body

application/json
name
string
required

Schedule name. Required, non-empty.

entity_id
string

Doctor/entity id this schedule is scoped to.

location_id
string

Clinic/location id this schedule is scoped to.

config
object
timebounds
object

Availability rules to create alongside the schedule. Each block below is independent — include only the rule types you need.

productMap
object

Assigns/unassigns this schedule to products. Keys are product-emr or product-widget, values are true to assign, false to unassign. product-widget allows only one active schedule per (entity_id, location_id).

Response

Created

success
boolean
Example:

true

data
object