createSpaceProperty method
Future<SpaceProperty>
createSpaceProperty({
- required int spaceId,
- 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(),
));
}