NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Media/Music on Hold/Domain → Create a New MOH for Domain from Upload

AI-generated

Summary

Uploads an audio file to create a music-on-hold (MOH) item for a selected NetSapiens domain. Choose binary data from an earlier node or provide Base64 text, then set the description and optional playback settings.

Inputs

  • Domain (required) — Select a domain or enter its name.
  • Synchronous (required) — Choose whether to wait for a 200 response or receive a 202 acknowledgement; defaults to Yes.
  • Script (required) — Description of the audio file.
  • Index — Optional numeric MOH position; 0 is the intro greeting. Leave empty for automatic assignment.
  • Convert — Whether the API should convert the file format for playback compatibility; defaults to Yes.
  • File Source (required) — Choose Binary Data From Previous Node or Base64 Text Input.
  • Binary Property — When using binary data, the input item's binary property containing the audio file; defaults to data.
  • Encoding — MIME type of the audio file, such as audio/wav or audio/mp3. The UI says to leave empty to auto-detect from binary data.
  • Base64 File — When using Base64 Text Input, provide the Base64-encoded audio content; expressions can reference data from an earlier node.
  • Refresh Dropdown Cache — Bypass cached dropdown values and fetch fresh options; defaults to off.

Output shape

A response from the NetSapiens API for the created MOH item.

The response may differ depending on the Synchronous setting. The supplied source pack exposes only signatures, so it does not establish the exact response fields or confirm how the selected file source and optional file fields are handled at runtime.

Links

Discussion