createSpaceProperty method

  1. @deprecated
Future<SpaceProperty> createSpaceProperty({
  1. required String spaceKey,
  2. required SpacePropertyCreate body,
})

Deprecated, use Confluence's v2 API.

Creates a new space property.

Permissions required: ‘Admin’ permission for the space.

Implementation

@deprecated
Future<SpaceProperty> createSpaceProperty(
    {required String spaceKey, required SpacePropertyCreate body}) async {
  return SpaceProperty.fromJson(await _client.send(
    'post',
    'wiki/rest/api/space/{spaceKey}/property',
    pathParameters: {
      'spaceKey': spaceKey,
    },
    body: body.toJson(),
  ));
}