McMain icon

McMain

Interact with McMain API

Asset Type → Get List

AI-generated

Summary

Retrieve a list of asset types, optionally limiting the number of results.

Inputs

  • returnAll — Whether to return all results or only up to a given limit
  • limit — Maximum number of results to return; must be between 1 and 500
  • requestOptions — Additional request configuration such as batching, SSL verification, proxy, and timeout

Output shape

an array of asset type objects

Returns up to the configured limit; when returnAll is false the list may be truncated; no pagination support

Examples

Example 1: Fetch the first 10 asset types

Set limit to 10, leave returnAll false

Example 2: Get all asset types regardless of limit

Enable returnAll true; limit can be omitted

Example 3: Configure batch processing with proxy and timeout

Set batchSize 20, batchInterval 500, proxy to http://proxy:3128, timeout 15000

Discussion