AzuraCast icon

AzuraCast

Interact with AzuraCast Web API

Actions263

Station Media → Update File Batch Action

AI-generated

Summary

Update multiple media files for a station using a batch action

Inputs

  • path__putstationfilebatchaction__station_id (required) — Identifies the station for this action. Path parameter: {station_id} Choose a name from the list, or specify an ID using an expression.
  • body_required__putstationfilebatchaction__do (required) — Batch action to perform | Required body field: do
  • body_optional__putstationfilebatchaction — Add one or more optional body fields for this action (Optional body field)
  • sendAdditionalHeaders — Whether to include extra HTTP headers in this request
  • additionalHeaders — Provide additional HTTP headers as a JSON object, for example {"X-Trace-ID":"abc123"}
  • bodyModeOverride — Auto uses the built-in fields for this action. Override only when you need to send the request body manually.
  • manualJsonBody — Manual request body as JSON. Used only when Body Mode Override is set to JSON.
  • manualRawBody — Manual request body as plain text. Used only when Body Mode Override is set to Raw.
  • manualBinaryBodyProperty — Input binary property name to read when sending binary or multipart payloads manually
  • manualMultipartFileFieldName — Multipart file field name expected by the endpoint when using manual multipart mode
  • manualMultipartFields — Additional multipart form fields as JSON when using manual multipart mode
  • responseFormat — Choose how n8n should parse the response returned by AzuraCast
  • binaryOutputProperty — Binary output property name used when Response Format is set to Binary
  • returnFullResponse — Whether to return the full HTTP response, including headers and status code
  • wrapResponseData — Whether to keep the response body in a single output item. Disable to split array responses into multiple items.

Output shape

a JSON object containing the batch action result, such as success flag and possibly affected items

May include a success field and optional error details; not paginated; shape can vary with Response Format and returnFullResponse settings.

Examples

Example 1: Move a set of files to a new directory within a station

Station Name or ID, do=move, Directory='NewFolder', Files=['file1.jpg','file2.jpg'], sendAdditionalHeaders=false, Response Format=JSON

Example 2: Delete multiple media files in batch

Station Name or ID, do=delete, Files=['old1.mp3','old2.mp3'], Response Format=Binary, returnFullResponse=true

Example 3: Create a new playlist via batch action

Station Name or ID, do=playlist, playlists=["new"], new_playlist_name='MyPlaylist', Response Format=Auto

Links

Discussion