pages

POST `/api/v0/main-frontend/pages` - Create a new page. Please note that this endpoint will change all the exercise and exercise task ids you've created. Make sure the use the updated ids from the response object. If optional property front_page_of_chapter_id is set, this page will become the front page of the specified course part. # Example: Request: ```http POST /api/v0/main-frontend/pages HTTP/1.1 Content-Type: application/json { "content": [ { "type": "x", "id": "2a4e517d-a7d2-4d82-89fb-a1333d8d01d1" } ], "url_path": "/part-2/best-page", "title": "Hello world!", "course_id": "10363c5b-82b4-4121-8ef1-bae8fb42a5ce", "chapter_id": "2495ffa3-7ea9-4615-baa5-828023688c79" } ```

Changed on
post/api/v0/main-frontend/pages

Request

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

Request body

chapter_idstring uuid nullable
content_search_languagestring nullable

Read from the course's settings if None. If course_id is None as well, defaults to "simple"

course_idstring uuid nullable
exam_idstring uuid nullable
front_page_of_chapter_idstring uuid nullable

If set, set this page to be the front page of this course part.

hiddenboolean required
titlestring required
url_pathstring required

Response

Created page

chapter_idstring uuid nullable
contentunknown required
copied_fromstring uuid nullable
course_idstring uuid nullable
created_atstring date-time required
deleted_atstring date-time nullable
exam_idstring uuid nullable
hiddenboolean required
idstring uuid required
order_numberinteger required
page_language_group_idstring uuid nullable
titlestring required
updated_atstring date-time required
url_pathstring required

Changes