McMain icon

McMain

Interact with McMain API

Asset Type → Create

AI-generated

Summary

Create an asset type

Inputs

  • id (required) — ID of the asset type
  • description (required) — Short description of the asset type
  • additionalFields — Additional custom fields for the asset type
  • requestOptions — Configuration options such as batching, SSL settings, proxy, and timeout

Output shape

A single created asset type record

Contains the created asset type's fields; response shape is not paginated

Examples

Example 1: Create a new asset type with custom comment and batch settings

id=MY_TYPE, description=Machinery Parts, additionalFields.comments=Test, requestOptions.batching.batchSize=100, requestOptions.timeout=15000

Discussion