updateSpacePropertyById method
Future<SpaceProperty>
updateSpacePropertyById({
- required int spaceId,
- required int propertyId,
- bool? serializeIdsAsStrings,
- required SpacePropertyUpdateRequest body,
Update a space property by its id.
Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.
Implementation
Future<SpaceProperty> updateSpacePropertyById(
{required int spaceId,
required int propertyId,
bool? serializeIdsAsStrings,
required SpacePropertyUpdateRequest body}) async {
return SpaceProperty.fromJson(await _client.send(
'put',
'spaces/{space-id}/properties/{property-id}',
pathParameters: {
'space-id': '$spaceId',
'property-id': '$propertyId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}