Admin Public Exercises

Update Exercise Savoirs Faire

Replace the savoirs_faire_ids list on a single exercise.

Phase B.2. Mirrors /type and /category-path as a one-click curation action (no fat payload, no unintended side effects on siblings like content or category_path). The request body is a full list — callers should always send the desired end state, not a diff.

patch/admin/public-exercises/{exercise_id}/savoirs-faire

Path parameters

exercise_idstring required

Request body

savoirs_faire_idsstring[]

Response

Successful Response

idstring required
category_pathstring[] required
difficultystring nullable
contentstring required
solutionstring required
figure_contentstring[] nullable
figure_solutionstring[] nullable
themesstring[]
updated_atstring nullable
library'excellence' | 'cpge' | 'remediation'
type'exercice' | 'automatisme' | 'application_du_cours'
likes_countinteger
savoirs_faire_idsstring[]
titlestring nullable

Changes