@0x3639/intervals-icu
    Preparing search index...

    Interface WorkoutConversionInput

    Body for workouts.convertWorkout() / convertWorkoutForAthlete().

    Live probes (AUDIT.md, 2026-09-21) showed that a body carrying name, description, type and workout_doc converts, and that the earlier minimal body without workout_doc returns HTTP 500. The fields were not probed one at a time, so all four are required here as a conservative contract. Any other Workout field may be included.

    interface WorkoutConversionInput {
        athlete_id?: string;
        color?: string;
        day?: number;
        description: string;
        distance?: number;
        file_contents?: string;
        file_contents_base64?: string;
        folder_id?: number;
        hide_from_athlete?: boolean;
        icu_training_load?: number;
        id?: number;
        indoor?: boolean;
        intensity?: number;
        joules?: number;
        moving_time?: number;
        name: string;
        plan_applied?: string;
        type: string;
        workout_doc: WorkoutDoc;
        [key: string]: unknown;
    }

    Hierarchy

    • Partial<Workout>
      • WorkoutConversionInput

    Indexable

    • [key: string]: unknown
    Index
    athlete_id?: string
    color?: string
    day?: number

    Day offset within a plan (0-based)

    description: string
    distance?: number
    file_contents?: string

    Raw file contents (zwo, mrc, erg, fit)

    file_contents_base64?: string

    Base64-encoded file contents

    folder_id?: number
    hide_from_athlete?: boolean
    icu_training_load?: number
    id?: number
    indoor?: boolean
    intensity?: number
    joules?: number
    moving_time?: number
    name: string
    plan_applied?: string
    type: string
    workout_doc: WorkoutDoc

    Structured workout definition, e.g. a calendar workout event's workout_doc. Never null.