createCustomContent method

Future<CustomContentSingle> createCustomContent({
  1. bool? serializeIdsAsStrings,
})

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(
    {bool? serializeIdsAsStrings}) async {
  return CustomContentSingle.fromJson(await _client.send(
    'post',
    'custom-content',
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}