Create lesson
teachworks_create_lessonDestructive
WRITE: schedule a single lesson on the calendar for one or more students with a teacher, service and location. Check teachworks_list_availabilities and teachworks_list_lessons first to avoid conflicts. POST /lessons.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Lesson name (defaults per Teachworks settings). | |
| spaces | No | Number of student spaces (group lessons). | |
| to_date | No | End date (defaults to from_date). | |
| to_time | Yes | End time, e.g. 17:00. | |
| from_date | Yes | Start date. | |
| from_time | Yes | Start time, e.g. 16:00. | |
| time_zone | No | Rails time zone name, e.g. 'Eastern Time (US & Canada)' (defaults to the account's). | |
| service_id | Yes | Service id (sets the default cost and wage). | |
| description | No | ||
| employee_id | Yes | Teacher (employee) id. | |
| location_id | No | Location id. | |
| student_ids | Yes | Student ids attending. |