Admin: Courses

Mark a course as a draft. A state is not an update: each change of Course Readiness is its own operation with its own Permission. Any change between two distinct values is legal; repeating the current value is a 409 with a localized detail.

post/api/admin/courses/{id}/mark_draft

Request

  • The document declares no server URL.
  • Auth: API key in cookie session

Path parameters

idinteger required

Response

The request has succeeded.

idinteger required
slugstring required
namestring nullable required
learnAs'first_language' | 'second_language' required

How a course is meant to be learned.

readiness'completed' | 'in_development' | 'draft' required

Publication/readiness state of a course.

categoryIdinteger nullable required
currentVersionIdinteger nullable required
createdAtstring date-time required
enrollmentsCountinteger required
lessonsCountinteger required
ratingCountinteger required
ratingValuenumber double required
repositoryUrlstring nullable required
hexletProgramLandingPagestring nullable required
coverListVariantstring nullable required
coverThumbVariantstring nullable required

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added