Translate questions
put
https://mudey.fr/api/v1/courses/{courseId}/lessons/{lessonId}/question-translations/{language}courses:writeIdentifiers do not change: grading and past attempts stay correct. A question sent without any text loses its translation.
Authorization: Bearer mudey_sk_… header required. Create and use a key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| courseId* | path | string | |
| lessonId* | path | string | |
| language* | path | fr | en | nl |
JSON body
Fields marked * are required.
| Field | Type | Description |
|---|---|---|
| questions* | object[] |
Responses
200Updated translations.401Missing, invalid, revoked or expired key.403Missing permission on the key, or the account is no longer an instructor.404Resource not found among your courses.422Invalid data (details lists the fields).429Rate limit exceeded (300 calls per minute per key). See the Retry-After header.
Example
export MUDEY_API_KEY="mudey_sk_..."
export COURSE_ID="..." # replace me
export LESSON_ID="..." # replace me
export LANGUAGE="..." # replace me
curl -X PUT "https://mudey.fr/api/v1/courses/$COURSE_ID/lessons/$LESSON_ID/question-translations/$LANGUAGE" \
-H "Authorization: Bearer $MUDEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"questions": []
}'