createSpaceProperty method
Future<SpaceProperty>
createSpaceProperty({
- required int spaceId,
- bool? serializeIdsAsStrings,
- 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,
bool? serializeIdsAsStrings,
required SpacePropertyCreateRequest body}) async {
return SpaceProperty.fromJson(await _client.send(
'post',
'spaces/{space-id}/properties',
pathParameters: {
'space-id': '$spaceId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}