updateSpaceProperty method

  1. @deprecated
Future<SpaceProperty> updateSpaceProperty({
  1. required String spaceKey,
  2. required String key,
  3. required SpacePropertyUpdate body,
})

Deprecated, use Confluence's v2 API.

Updates a space property. Note, you cannot update the key of a space property, only the value.

Permissions required: ‘Admin’ permission for the space.

Implementation

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