removeRequestParticipants method

Future<PagedDTOUserDTO> removeRequestParticipants({
  1. required String issueIdOrKey,
  2. required RequestParticipantUpdateDTO body,
})

This method removes participants from a customer request.

Permissions required: Permission to manage participants on the customer request.

Implementation

Future<PagedDTOUserDTO> removeRequestParticipants(
    {required String issueIdOrKey,
    required RequestParticipantUpdateDTO body}) async {
  return PagedDTOUserDTO.fromJson(await _client.send(
    'delete',
    'rest/servicedeskapi/request/{issueIdOrKey}/participant',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    body: body.toJson(),
  ));
}