chapters

POST `/api/v0/main-frontend/chapters` - Create a new course part. # Example Request: ```http POST /api/v0/main-frontend/chapters HTTP/1.1 Content-Type: application/json { "name": "The Basics", "course_id": "d86cf910-4d26-40e9-8c9c-1cc35294fdbb", "chapter_number": 1, "front_page_id": null } ```

post/api/v0/main-frontend/chapters

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

chapter_numberinteger required
colorstring nullable
course_idstring uuid required
course_module_idstring uuid nullable

If undefined when creating a chapter, will use the course default one. CHANGE TO NON NULL WHEN FRONTEND MODULE EDITING IMPLEMENTED

deadlinestring date-time nullable
front_page_idstring uuid nullable
namestring required
opens_atstring date-time nullable

Response

Created chapter

chapter_image_urlstring nullable
chapter_numberinteger required
colorstring nullable
copied_fromstring uuid nullable
course_idstring uuid required
course_module_idstring uuid required
created_atstring date-time required
deadlinestring date-time nullable
deleted_atstring date-time nullable
front_page_idstring uuid nullable
idstring uuid required
namestring required
opens_atstring date-time nullable
updated_atstring date-time required

Changes

No recorded changes to this operation across all 49 revisions of this API.