getRestrictionsByOperation method

Future<Map<String, dynamic>> getRestrictionsByOperation({
  1. required String id,
  2. List<String>? expand,
})

Returns restrictions on a piece of content by operation. This method is similar to Get restrictions except that the operations are properties of the return object, rather than items in a results array.

Permissions required: Permission to view the content.

Implementation

Future<Map<String, dynamic>> getRestrictionsByOperation(
    {required String id, List<String>? expand}) async {
  return await _client.send(
    'get',
    'wiki/rest/api/content/{id}/restriction/byOperation',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
    },
  ) as Map<String, Object?>;
}