addGroupToContentRestrictionByGroupId method

Future<void> addGroupToContentRestrictionByGroupId({
  1. required String id,
  2. required String operationKey,
  3. required String groupId,
})

Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a piece of content.

Permissions required: Permission to edit the content.

Implementation

Future<void> addGroupToContentRestrictionByGroupId(
    {required String id,
    required String operationKey,
    required String groupId}) async {
  await _client.send(
    'put',
    'wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}',
    pathParameters: {
      'id': id,
      'operationKey': operationKey,
      'groupId': groupId,
    },
  );
}