addRequestParticipants method

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

This method adds participants to a customer request.

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

Note, participants can be added when creating a customer request using the request resource, by defining the participants in the requestParticipants field.

Implementation

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