McMain icon

McMain

Interact with McMain API

Asset Type → Update

AI-generated

Summary

Update an existing asset type by ID with optional description, comments, and request settings.

Inputs

  • id (required) — ID of the asset type to update
  • updateFields — Collection of fields (e.g., description, comments) to update on the asset type
  • requestOptions — Optional request configuration such as batching, SSL, proxy, and timeout

Output shape

a single updated asset type object

The response contains the updated asset type details; errors are returned as standard error envelopes.

Examples

Example 1: Update description and comments for asset type ID 456

Set Asset Type ID to 456, add description and comments, leave request options unchanged.

Example 2: Batch update multiple fields with custom batch size

Enable batching with batchSize 100 and batchInterval 500, update fields as needed.

Example 3: Update using insecure SSL proxy

Set allowUnauthorizedCerts true, specify proxy URL, and optionally adjust timeout.

Discussion