removeUserFromContentRestriction method

Future<void> removeUserFromContentRestriction({
  1. required String id,
  2. required String operationKey,
  3. String? key,
  4. String? username,
  5. String? accountId,
})

Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content.

Permissions required: Permission to edit the content.

Implementation

Future<void> removeUserFromContentRestriction(
    {required String id,
    required String operationKey,
    String? key,
    String? username,
    String? accountId}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user',
    pathParameters: {
      'id': id,
      'operationKey': operationKey,
    },
    queryParameters: {
      if (key != null) 'key': key,
      if (username != null) 'username': username,
      if (accountId != null) 'accountId': accountId,
    },
  );
}