AzuraCast icon

AzuraCast

Interact with AzuraCast Web API

Actions263

Station Media → Upload File

AI-generated

Summary

Uploads a file to a station's media repository.

Inputs

  • path__postuploadfile__station_id (required) — Identifies the station for this action; choose from the list or specify an ID using an expression.
  • multipart_binary_property__postuploadfile — Name of the input data field that contains the upload file.
  • multipart_file_field_name__postuploadfile — Multipart form-data field name for the uploaded file.
  • sendAdditionalHeaders — Whether to include extra HTTP headers in this request.
  • additionalHeaders — Provide additional HTTP headers as a JSON object, e.g. {"X-Trace-ID":"abc123"}.
  • bodyModeOverride — Override the automatic body handling mode; options include Auto, Binary, JSON, Multipart Form-Data, None, Raw.
  • 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.
  • manualInputDataFieldName — 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; disabling splits array responses.

Output shape

a JSON object representing the uploaded media item

Full HTTP response is returned when returnFullResponse is true; otherwise only the parsed body is output. May be empty on success when wrapResponseData is false.

Examples

Example 1: Upload a file using default multipart settings.

station_id=5, multipart_binary_property__postuploadfile=data, multipart_file_field_name__postuploadfile=file, responseFormat=JSON, returnFullResponse=false

Example 2: Upload a file with custom headers.

station_id=123, sendAdditionalHeaders=true, additionalHeaders={"X-Custom":"value"}

Example 3: Upload a file as raw JSON payload.

station_id=7, bodyModeOverride=raw, manualRawBody=raw content

Links

Discussion