updateContent method

  1. @deprecated
Future<Content> updateContent({
  1. required String id,
  2. String? status,
  3. String? conflictPolicy,
  4. required ContentUpdate body,
})

Deprecated, use Confluence's v2 API.

Updates a piece of content. Use this method to update the title or body of a piece of content, change the status, change the parent page, and more.

Note, updating draft content is currently not supported.

Permissions required: Permission to update the content.

Implementation

@deprecated
Future<Content> updateContent(
    {required String id,
    String? status,
    String? conflictPolicy,
    required ContentUpdate body}) async {
  return Content.fromJson(await _client.send(
    'put',
    'wiki/rest/api/content/{id}',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (status != null) 'status': status,
      if (conflictPolicy != null) 'conflictPolicy': conflictPolicy,
    },
    body: body.toJson(),
  ));
}