createContentPropertyForKey method

  1. @deprecated
Future<ContentProperty> createContentPropertyForKey({
  1. required String id,
  2. required String key,
  3. required ContentPropertyCreateNoKey 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 except that the key is specified as a path parameter instead of in the request body.

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> createContentPropertyForKey(
    {required String id,
    required String key,
    required ContentPropertyCreateNoKey body}) async {
  return ContentProperty.fromJson(await _client.send(
    'post',
    'wiki/rest/api/content/{id}/property/{key}',
    pathParameters: {
      'id': id,
      'key': key,
    },
    body: body.toJson(),
  ));
}