deleteRequestType method

Future<void> deleteRequestType({
  1. required String serviceDeskId,
  2. required int requestTypeId,
})

This method deletes a customer request type from a service desk, and removes it from all customer requests. This only supports classic projects.

Permissions required: Service desk administrator.

Implementation

Future<void> deleteRequestType(
    {required String serviceDeskId, required int requestTypeId}) async {
  await _client.send(
    'delete',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/requesttype/{requestTypeId}',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
      'requestTypeId': '$requestTypeId',
    },
  );
}