NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Media/Hold Messages/Domain → Update Hold Message for Domain from Upload

AI-generated

Summary

Uploads an audio file to update an existing domain hold message, using its domain and media index to target the item. Choose the file from an incoming binary property or provide base64 text, and set its description, optional MIME type and conversion preference, and whether to wait for a synchronous response.

Inputs

  • Domain (required) — Select a domain or enter its name.
  • Index (required) — Select an existing media item or enter its index.
  • Synchronous (required) — Choose Yes to wait for a 200 response or No to accept a 202 acknowledgement.
  • Script (required) — Description of the audio file.
  • 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 incoming binary property name; defaults to data.
  • Encoding — Audio MIME type, such as audio/wav or audio/mp3. Leave empty to auto-detect from binary data.
  • Base64 File — When using base64 text, the encoded audio file content.
  • Refresh Dropdown Cache — Bypass cached dropdown values and fetch fresh options; defaults to false.

Output shape

A single item containing the API response.

The response may be a 200 result or a 202 acknowledgement, depending on the Synchronous setting.

Examples

Example 1: Update a domain hold message with audio from an earlier workflow step

Select the target domain and existing media index, choose Binary Data From Previous Node, and set Binary Property to the incoming audio's property name. Provide a script description and optionally set Encoding or Convert.

Example 2: Update a domain hold message from base64 text

Select the target domain and existing media index, choose Base64 Text Input, and provide the encoded audio in Base64 File. Set Synchronous to No to accept a 202 acknowledgement.

Links

Discussion