teacher_exercises

Merge Exercises Into One

Merge several teacher exercises into a single one.

Used by the "mes exercices" import flow: when an upload is parsed into n>1 exercises and the teacher chooses to keep them as one. Each source figure is preserved as an inline figure://id marker in the merged content (Figure docs are NOT deleted — only the source exercise wrappers). The source exercises are removed afterwards.

post/teacher_exercises/merge-into-one

Request body

exercise_idsstring[] required
titlestring nullable
folder_idstring nullable

Response

Successful Response

idstring required
teacher_idstring required
titlestring nullable required
contentstring required
solutionstring nullable required
figure_idstring nullable
solution_figure_idstring nullable
figure_contentstring nullable
figure_solutionstring nullable
difficultystring nullable required
themesstring[] required
sourcestring required
subject'maths' | 'physique-chimie'
grade'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa' nullable
created_atstring date-time required
updated_atstring date-time required
is_privateboolean required
is_savedboolean required
folder_idstring nullable
likes_countinteger

Changes