getApprovals method

Future<PagedDTOApprovalDTO> getApprovals({
  1. int? start,
  2. int? limit,
  3. required String issueIdOrKey,
})

This method returns all approvals on a customer request.

Permissions required: Permission to view the customer request.

Implementation

Future<PagedDTOApprovalDTO> getApprovals(
    {int? start, int? limit, required String issueIdOrKey}) async {
  return PagedDTOApprovalDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/request/{issueIdOrKey}/approval',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}