createSpaceProperty method

Future<SpaceProperty> createSpaceProperty({
  1. required int spaceId,
  2. required SpacePropertyCreateRequest body,
})

Creates a new space property.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.

Implementation

Future<SpaceProperty> createSpaceProperty(
    {required int spaceId, required SpacePropertyCreateRequest body}) async {
  return SpaceProperty.fromJson(await _client.send(
    'post',
    'spaces/{space-id}/properties',
    pathParameters: {
      'space-id': '$spaceId',
    },
    body: body.toJson(),
  ));
}