AzuraCast icon

AzuraCast

Interact with AzuraCast Web API

Actions263

Station Web Hook → Toggle Webhook

AI-generated

Summary

Toggles the enabled/disabled state of a specified web hook on an AzuraCast station.

Inputs

  • Webhook Name or ID (required) — Identifies the specific webhook to toggle. Can be selected from a list or specified by its numeric ID.
  • Station Name or ID (required) — Identifies the station containing the webhook. Can be selected from a list or specified by its numeric ID.
  • Body Mode Override — Overrides the automatic body generation. Options include Auto, Binary, JSON, Multipart Form-Data, None, or Raw.
  • Additional Headers (JSON) — Provides extra HTTP headers for the request. Visible only when 'Send Additional Headers' is enabled.
  • Manual JSON Body — A manual JSON body for the request. Visible only when 'Body Mode Override' is set to JSON.
  • Manual Raw Body — A manual raw text body for the request. Visible only when 'Body Mode Override' is set to Raw.
  • Response Format — Determines how the HTTP response body is parsed. Options include Auto, Binary, JSON, or Text.
  • Return Full Response — When true, returns the complete HTTP response including headers and status code.

Output shape

A single output item containing the parsed response body.

If 'Wrap Response Data' is disabled, array responses are split into multiple items. The node relies on the AzuraCast API for its output shape.

Examples

Example 1: Enable a webhook by name

Select 'Webhook Name or ID' from the list, select 'Station Name or ID' from the list, and keep 'Body Mode Override' as 'Auto'.

Example 2: Toggle a webhook using its ID

Set 'Webhook Name or ID' to '8', 'Station Name or ID' to '1', and 'Return Full Response' to true.

Example 3: Send custom headers with the toggle request

Set 'Send Additional Headers' to true, configure 'Additional Headers (JSON)', and set 'Body Mode Override' to 'Auto'.

Links

Discussion