createSpacePropertyForKey method

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

Deprecated, use Confluence's v2 API.

Creates a new space property. This is the same as POST /wiki/rest/api/space/{spaceKey}/property but the key for the property is passed as a path parameter, rather than in the request body.

Permissions required: ‘Admin’ permission for the space.

Implementation

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