addCustomContentPermissions method

Future<void> addCustomContentPermissions({
  1. required String spaceKey,
  2. required SpacePermissionCustomContent body,
})

Adds new custom content permission to space.

If the permission to be added is a group permission, the group can be identified by its group name or group id.

Note: Only apps can access this REST resource and only make changes to the respective app permissions.

Permissions required: 'Admin' permission for the space.

Implementation

Future<void> addCustomContentPermissions(
    {required String spaceKey,
    required SpacePermissionCustomContent body}) async {
  await _client.send(
    'post',
    'wiki/rest/api/space/{spaceKey}/permission/custom-content',
    pathParameters: {
      'spaceKey': spaceKey,
    },
    body: body.toJson(),
  );
}