async fn post_new_page(
    request_id: RequestId,
    payload: Json<NewPage>,
    pool: Data<PgPool>,
    app_conf: Data<ApplicationConfiguration>,
    user: AuthUser,
    jwt_key: Data<JwtKey>
) -> ControllerResult<Json<Page>>
Expand description

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:

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"
}