McMain icon

McMain

Interact with McMain API

Asset → Change Bitmap

AI-generated

Summary

Change bitmap of an asset

Inputs

  • id (required) — ID of the asset
  • image (required) — Image details to change the bitmap, containing fileName and data fields
  • requestOptions — Additional request configuration such as batching, SSL verification, proxy, and timeout

Output shape

no body — success/failure only

Returns a success status; on error an error object is emitted.

Examples

Example 1: Change bitmap of an existing asset

Set Asset ID to the target asset's ID, add an Image with File Name 'new_logo.png' and Data (Base64) of the image, optionally adjust Request Options for batching and timeout.

Example 2: Upload multiple images in a batch

Provide Asset ID, add multiple Image entries each with fileName and data, enable Batching with batchSize 10 and batchInterval 500.

Example 3: Use default request settings

Only Asset ID and Image are required; leave Request Options at defaults (no batching, SSL verification off, empty proxy, 10‑second timeout).

Discussion