NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Media/Hold Messages/Domain → Create a New Hold Message for Domain from Upload

AI-generated

Summary

Upload an audio file to create a hold message for a selected NetSapiens domain. Choose the file source, provide its content, and set the message description and optional playback index and conversion options.

Inputs

  • Domain (required) — Select a domain from the list or enter its name.
  • Synchronous (required) — Choose whether to wait for the API’s 200 response or accept a 202 acknowledgement.
  • Script (required) — Description of the audio file.
  • Index — MOH playback position; 0 is the intro greeting. Leave empty for automatic assignment.
  • Convert — Whether the API should convert the file format for playback compatibility.
  • File Source (required) — Choose binary data from a previous node or base64 text input.
  • Binary Property — When using binary data, name the incoming binary property containing the audio file. Defaults to data.
  • Encoding — MIME type of the audio file, 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. Can be an expression referencing previous node data.
  • Refresh Dropdown Cache — Bypass cached dropdown values and fetch fresh options; defaults to false.

Output shape

a single API response item

The response details and shape depend on the API response and the Synchronous setting.

Examples

Example 1: Upload from a previous node

Select a domain, set Script, choose Binary Data From Previous Node, and set Binary Property to the incoming audio property name. Optionally provide the MIME type and playback index.

Example 2: Upload base64 content

Select a domain, set Script, choose Base64 Text Input, and provide the base64-encoded audio in Base64 File.

Links

Discussion