createTask
Schedule cycling workouts, events, or free rides on the MyWhoosh calendar by specifying task type, start time, and workout or event ID.
Instructions
Create a calendar task to schedule events, workouts, or free rides.
TASK TYPES:
E_Event: Schedule a group event (use event UUID as taskTypeId)
E_Simple_Workout: Schedule any workout (custom or standard, use workout ID as taskTypeId)
E_FreeRide: Schedule a free ride session
SCHEDULING WORKOUTS:
Use TaskType: "E_Simple_Workout" (for both custom and standard workouts)
Set TaskTypeId to the workout ID (from uploadCustomWorkout or standard workout ID)
TaskStartedTimeEpoc: Unix timestamp when workout should start
TaskEndEpochTime: Unix timestamp when workout should end (start + duration)
Include workout details like Name, Description, TSS
EXAMPLE - Schedule Workout: { "taskType": "E_Simple_Workout", "taskStartedTimeEpoc": 1735200000, "taskTypeId": "176540733485", "taskName": "Interval Power Builder", "taskDescription": "Intensive interval training", "tss": 65 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tss | No | Training Stress Score | |
| dayNo | No | Day number for multi-day events (0 for single tasks) | |
| mapId | No | Map/World ID (0 for workouts) | |
| curDayId | No | Day ID for multi-day events (leave empty for single tasks) | |
| taskName | Yes | Name of the task/workout | |
| taskType | Yes | Type of task: E_Event (group event), E_Simple_Workout (any workout - custom or standard), E_FreeRide (free ride) | |
| sportMode | No | Sport mode (E_Cycling for cycling) | E_Cycling |
| taskTypeId | Yes | ID of the event/workout. For workouts: use the workout Id. For events: use event UUID. | |
| totalElevation | No | Total elevation in meters (0 for workouts) | |
| taskDescription | No | Description of the task | |
| totalKilometers | No | Total distance in km (0 for workouts) | |
| taskEndEpochTime | No | End time as Unix timestamp. If not provided, defaults to start time. For workouts: start time + workout duration. | |
| taskStartedTimeEpoc | Yes | Start time as Unix timestamp (seconds since 1970-01-01) |