async fn update_page(
    request_id: RequestId,
    payload: Json<CmsPageUpdate>,
    page_id: Path<Uuid>,
    pool: Data<PgPool>,
    jwt_key: Data<JwtKey>,
    app_conf: Data<ApplicationConfiguration>,
    user: AuthUser
) -> ControllerResult<Json<ContentManagementPage>>
Expand description

PUT /api/v0/cms/pages/:page_id - Update a page by id.

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: OUTDATED

Request:

PUT /api/v0/cms/pages/40ca9bcf-8eaa-41ba-940e-0fd5dd0c3c02 HTTP/1.1
Content-Type: application/json

{
  "content": [{"type": "x"}],
  "url_path": "/part-1/hello-world",
  "title": "Hello world!",
  "chapter_id": "2495ffa3-7ea9-4615-baa5-828023688c79"
}