McMain icon

McMain

Interact with McMain API

Base Data → Get Work Order Types

AI-generated

Summary

Retrieve work order type definitions from the Base Data service.

Inputs

  • requestOptions — Configuration for request batching, SSL settings, proxy, and timeout.
  • allowUnauthorizedCerts — If true, accept responses with invalid SSL certificates.
  • proxy — HTTP proxy URL to use for the request.
  • timeout — Maximum wait time for server response in milliseconds.

Output shape

a list of work order type objects

Returns all defined work order types; no pagination required.

Examples

Example 1: Basic retrieval of all work order types

Resource = Base Data; Operation = Get Work Order Types; leave Request Options default; set Timeout to 10000 ms.

Example 2: Fetching work order types with batching enabled

Request Options → batch → batchSize = 100; other fields default; Allow SSL Issues disabled.

Example 3: Using a proxy with custom timeout

Proxy = http://proxy.example.com:3128; Timeout = 5000; default batch settings.

Discussion