Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Auto DJ > Media → Store Auto DJ Media

AI-generated

Summary

Store a media file for an Infomaniak Auto DJ radio product using OAuth2 or API Key authentication.

Inputs

  • authentication (required) — Authentication method (OAuth2 or API Key).
  • path_radio_product_id (required) — ID of the radio product to which the media will be attached.
  • path_station_id (required) — ID of the station where the media will be stored.
  • body_name (required) — Name of the media file to store.
  • bodyParameters — Additional body fields; supports 'file' (local file reference) or 'url' (public URL).
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator is returned.

Output shape

a JSON object representing the stored media entry

When returnFullResponse is false, only a success status is emitted; otherwise the complete API response is returned. Errors are propagated as n8n error nodes.

Examples

Example 1: Upload a new jingle file to a radio station

Authentication: OAuth2; Radio Product Id: 42; Station Id: 7; Name: 'jingle.mp3'; File: '/files/jingle.mp3'; Return Full Response: false

Example 2: Add an external URL as media for a station

Authentication: API Key; Radio Product Id: 15; Station Id: 3; Name: 'promo.mp3'; Url: 'https://example.com/promo.mp3'; Return Full Response: true

Example 3: Store a file from the workflow's preceding node

Authentication: OAuth2; Radio Product Id: 9; Station Id: 5; Name: 'output.mp3'; File: ${{ $node['Previous'].items[0].data.url }}; Return Full Response: false

Links

Discussion