createCustomContent method

Future<CustomContentSingle> createCustomContent({
  1. required CustomContentCreateRequest body,
})

Creates a new custom content in the given space, page, blogpost or other custom content.

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

Implementation

Future<CustomContentSingle> createCustomContent(
    {required CustomContentCreateRequest body}) async {
  return CustomContentSingle.fromJson(await _client.send(
    'post',
    'custom-content',
    body: body.toJson(),
  ));
}