updateCustomContent method

Future<CustomContentSingle> updateCustomContent({
  1. required int id,
  2. required CustomContentUpdateRequest body,
})

Update a custom content by id.

spaceId is always required and maximum one of pageId, blogPostId, or customContentId is allowed in the request body. Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to update custom content in the space.

Implementation

Future<CustomContentSingle> updateCustomContent(
    {required int id, required CustomContentUpdateRequest body}) async {
  return CustomContentSingle.fromJson(await _client.send(
    'put',
    'custom-content/{id}',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}