deleteRestrictions method

Future<ContentRestrictionArray> deleteRestrictions({
  1. required String id,
  2. List<String>? expand,
})

Removes all restrictions (read and update) on a piece of content.

Permissions required: Permission to edit the content.

Implementation

Future<ContentRestrictionArray> deleteRestrictions(
    {required String id, List<String>? expand}) async {
  return ContentRestrictionArray.fromJson(await _client.send(
    'delete',
    'wiki/rest/api/content/{id}/restriction',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
    },
  ));
}