Publish a translation
post
https://mudey.fr/api/v1/courses/{courseId}/translations/{language}/publishcourses:writeVisible on the site as soon as the course is published.
Authorization: Bearer mudey_sk_… header required. Create and use a key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| courseId* | path | string | |
| language* | path | fr | en | nl | Site language (fr, en or nl), other than the course language. |
Responses
200Translation published.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.409Incomplete translation (translation_incomplete): title, description of at least 50 characters, titles of all sections and lessons.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 LANGUAGE="..." # replace me
curl -X POST "https://mudey.fr/api/v1/courses/$COURSE_ID/translations/$LANGUAGE/publish" \
-H "Authorization: Bearer $MUDEY_API_KEY"