Set my class schedule
set_class_scheduleUse this when an owner wants to see, add, change or cancel a class at their place. action list reads the schedule and changes nothing. For add, edit and cancel, read the class, day and time back to the owner first, and set confirmation to true only after they said yes. A class people booked keeps its time, length and price; a class members paid for cannot be cancelled here. Members pay for a paid class on Phorme's own payment page; this tool takes no payment. It needs a connected Phorme account that owns the place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | One line on the class. | |
| title | No | The class name, for example "Barbell basics". | |
| action | Yes | ||
| minutes | No | ||
| capacity | No | How many people it takes. | |
| class_id | No | For edit and cancel: the class_id from action list. | |
| place_id | Yes | The place_id of one of the owner's places, from get_gym_report or create_or_claim_place. | |
| price_usd | No | What one place in the class costs, as the owner set it. 0 or left out for free. Never repeat it to anyone but the owner. | |
| starts_at | No | When it starts: "YYYY-MM-DDTHH:MM" in the place's own time, or an ISO time with its offset. | |
| confirmation | No | Set to true only after the owner said yes to this class change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| class | No | ||
| classes | No | class_id, title, line, starts (local), starts_at, minutes, capacity, booked, paid, status. | |
| place_id | Yes |