Momence: Create class
momence_create_classMomence: One-off class or recurring series from a class template, like Classes > Schedule > New Class. Creates one class, or a series when repeat_every_days is set, from an existing class template. Returns the new class IDs and the first dates. With as_draft the classes stay hidden from customers. It reaches no one until published and is undone with cancel_class, so it runs without asking. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teacher | Yes | Teacher name. | |
| as_draft | No | Save unpublished, hidden from customers. Default: false. | |
| end_date | No | Last date of the series. Without it the series keeps scheduling itself. | |
| location | Yes | Location name, in person or online. | |
| template | Yes | Class template name; holds the class name and description. | |
| starts_at | Yes | First class, ISO 8601 with time zone. | |
| duration_minutes | Yes | Length of each class. | |
| repeat_every_days | No | Days between classes for a recurring series, e.g. 7. Omit for a one-off class. |