mfit_workout_write_unarchive_routine
Create / update workout routines, sessions, and exercises in MFIT. Actions: create_routine — create a new workout routine for a student update_routine — edit routine name, dates, goal, difficulty, etc. archive_routine — archive a routine (status=1, reversible) unarchive_routine — restore archived routine to active (status=0) create_session — add a training session (day) to a routine add_exercise — add an exercise to a session (use mfit_search_exercises to find exercise_id). Added with 1 empty set — use update_serie to configure. update_serie — set reps, weight, rest for a serie. Get serie_id and exercise_session_id from mfit_workout get_session → exerciciosMontados.k{id}[0].series[0].id and .idExercSession.
Static options: trainingType: 1=Dia da Semana, 2=Numérico goal: 1=Hipertrofia, 2=Redução de gordura, 3=Redução de gordura/hipertrofia, 4=Definição muscular, 5=Condicionamento físico, 6=Qualidade de vida difficulty: 1=Iniciante, 2=Intermediário, 3=Avançado, 4=Adaptação day (session): 1=Domingo, 2=Segunda, 3=Terça, 4=Quarta, 5=Quinta, 6=Sexta, 7=Sábado
For destructive operations (delete routine / session / exercise) use mfit_workout_delete.
[Flattened action: unarchive_routine]
Bulk support: accepts client_ids, routine_ids, session_ids, exercise_ids, exercise_session_ids, serie_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| goal | No | ||
| name | No | ||
| reps | No | ||
| rest | No | ||
| weight | No | ||
| account | No | ||
| endDate | No | ||
| serie_id | No | ||
| client_id | No | ||
| serie_ids | No | ||
| startDate | No | ||
| client_ids | No | ||
| difficulty | No | ||
| routine_id | No | ||
| session_id | No | ||
| exercise_id | No | ||
| routine_ids | No | ||
| session_ids | No | ||
| exercise_ids | No | ||
| instructions | No | ||
| trainingType | No | ||
| allowPdfDownload | No | ||
| showTrainingTime | No | ||
| exercise_session_id | No | ||
| exercise_session_ids | No |