createContentProperty method

  1. @deprecated
Future<ContentProperty> createContentProperty({
  1. required String id,
  2. required ContentPropertyCreate body,
})

Creates a property for an existing piece of content. For more information about content properties, see Confluence entity properties.

This is the same as Create content property for key except that the key is specified in the request body instead of as a path parameter.

Content properties can also be added when creating a new piece of content by including them in the metadata.properties of the request.

Permissions required: Permission to update the content.

Implementation

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