AzuraCast icon

AzuraCast

Interact with AzuraCast Web API

Actions263

Station Media → Update File

AI-generated

Summary

Update a media item in an AzuraCast station.

Inputs

  • media_id (required) — Identifies the media to update; can be selected from the list or provided as an ID expression.
  • station_id (required) — Identifies the station containing the media; can be selected from the list or provided as an ID expression.
  • optional_body_fields — Optional body fields (e.g., title, artist, album, genre, length) to include in the request.
  • sendAdditionalHeaders — Whether to include extra HTTP headers in the request.
  • additionalHeaders — Custom HTTP headers to send, as a JSON object (used only when sendAdditionalHeaders is true).
  • bodyModeOverride — How the request body should be interpreted (auto, json, binary, multipart, raw, none).
  • manualJsonBody — Manual JSON request body (used when bodyModeOverride is set to JSON).
  • manualRawBody — Manual raw text request body (used when bodyModeOverride is set to Raw).
  • responseFormat — Desired format of the response (auto, binary, json, text).
  • returnFullResponse — Whether the full HTTP response (headers, status) should be returned.
  • wrapResponseData — Whether to wrap the response body in a single output item.

Output shape

updated media record

Returns the updated media object; may include additional metadata. Errors are handled by n8n and do not appear in the response body.

Examples

Example 1: Update title and album art of a media item

Set Media Name or ID to 'song123', Station Name or ID to 'station456', enable Body Mode Override JSON, set Title to 'New Title', Album to 'My Album', and Additional Headers to {"X-Update-Requested":"true"}

Example 2: Replace media file via multipart upload

Select Binary body mode, set Media ID to '789', Station ID to '1', provide Additional Headers, set manualMultipartFileFieldName to 'file', and fill manualMultipartFields with metadata

Example 3: Simple update using default settings

Choose Media from list, choose Station from list, leave optional fields empty, keep sendAdditionalHeaders false, and disable returnFullResponse

Links

Discussion