NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

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

AI-generated

Summary

Uploads an audio file to create a music-on-hold (MOH) item for a selected NetSapiens user. Choose the domain and user, provide a script description, and supply the audio as binary data from a previous node or as Base64 text; optionally set the MOH index, conversion behavior, and MIME type.

Inputs

  • Domain (required) — Select a domain or enter its name.
  • User (required) — Select a user in the chosen domain or enter the user ID.
  • Synchronous (required) — Choose whether the API waits for a 200 response or returns a 202 acknowledgement.
  • Script (required) — Description of the audio file.
  • Index — MOH position as a number; 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 a previous node or Base64 text input.
  • Binary Property — When using binary data, the name of the incoming binary property containing the audio; defaults to data.
  • Encoding — MIME type of the audio, such as audio/wav or audio/mp3. Leave empty to auto-detect from binary data.
  • Base64 File — When using Base64 text input, provide the Base64-encoded audio content.
  • Refresh Dropdown Cache — Bypass cached dropdown values and fetch fresh options; defaults to off.

Output shape

A single API response item.

The properties specify a synchronous 200 response or asynchronous 202 acknowledgement. The response fields are not defined by the supplied source pack.

Links

Discussion