updateContentProperty method

  1. @deprecated
Future<ContentProperty> updateContentProperty({
  1. required String id,
  2. required String key,
  3. required ContentPropertyUpdate body,
})

Updates an existing content property. This method will also create a new property for a piece of content, if the property key does not exist and the property version is 1. For more information about content properties, see Confluence entity properties.

Permissions required: Permission to update the content.

Implementation

@deprecated
Future<ContentProperty> updateContentProperty(
    {required String id,
    required String key,
    required ContentPropertyUpdate body}) async {
  return ContentProperty.fromJson(await _client.send(
    'put',
    'wiki/rest/api/content/{id}/property/{key}',
    pathParameters: {
      'id': id,
      'key': key,
    },
    body: body.toJson(),
  ));
}