updateCustomContent method

Future<CustomContentSingle> updateCustomContent({
  1. required int id,
  2. bool? serializeIdsAsStrings,
})

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