Admin Public Exercises

Regenerate Exercise Title

Regenerate a title for a single exercise using the same Portkey wrapper + prompt as migration 024 (batch size 1).

Used by the admin curation drawer "Régénérer" button. Keeps the LLM call synchronous (gpt-4o-mini, temperature 0.2). On success the new title is persisted + returned inside the detail payload.

post/admin/public-exercises/{exercise_id}/regenerate-title

Path parameters

exercise_idstring required

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