AzuraCast icon

AzuraCast

Interact with AzuraCast Web API

Actions263

Station Playlist → Toggle Playlist

AI-generated

Summary

Toggle a station's playlist on or off

Inputs

  • path__puttoggleplaylist__id (required) — Identifies the playlist for this action. Path parameter: {id} Choose a name from the list, or specify an ID using an expression.
  • path__puttoggleplaylist__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.
  • 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.
  • 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. Disable to split array responses into multiple items.

Output shape

JSON indicating success or error; if returnFullResponse is true, the full HTTP response is returned

When returnFullResponse is false the operation returns a simple boolean indicating success; otherwise it returns the complete HTTP response body and headers.

Examples

Example 1: Toggle a playlist by name using default body mode

Select the playlist from the list, specify the station ID, leave Additional Headers disabled, and keep Body Mode Override on Auto.

Example 2: Toggle a specific playlist by ID with custom headers

Enter the playlist ID manually, enable Send Additional Headers and add {"X-Trace-ID":"abc123"} in Additional Headers.

Example 3: Inspect the full HTTP response for debugging

Set Response Format to JSON and enable Return Full Response; optionally use Manual JSON Body to override the request body.

Links

Discussion