updatePage method

Future<PageSingle> updatePage({
  1. required int id,
  2. required PageUpdateRequest body,
})

Update a page by id.

Permissions required: Permission to view the page and its corresponding space. Permission to update pages in the space.

Implementation

Future<PageSingle> updatePage(
    {required int id, required PageUpdateRequest body}) async {
  return PageSingle.fromJson(await _client.send(
    'put',
    'pages/{id}',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}