Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Auto DJ > Playing Playlist → Insert Media After

AI-generated

Summary

Inserts a media item after a specified playing media in an Infomaniak Auto DJ playlist.

Inputs

  • authentication (required) — Authentication method (OAuth2 or API Key) to use for the Infomaniak API.
  • path_radio_product_id (required) — ID of the radio product containing the playlist.
  • path_station_id (required) — ID of the station to which the playlist belongs.
  • body_media_id (required) — ID of the media to insert into the playlist.
  • body_playing_media_id (required) — ID of the currently playing media that determines insertion point.
  • body_position (required) — Position relative to playing media ('after' or 'before').
  • returnFullResponse — If true, the complete API response is returned; otherwise only a success indicator.

Output shape

JSON object indicating insertion success; includes inserted media details when returnFullResponse is true.

When returnFullResponse is false, a simple confirmation is returned; errors are thrown as exceptions. The shape may vary slightly based on response mode.

Examples

Example 1: Add a new track after the current song using API Key authentication.

authentication: apiKey; path_radio_product_id: 12; path_station_id: 3; body_media_id: "media_456"; body_playing_media_id: "now_playing_789"; body_position: after; returnFullResponse: false

Example 2: Insert a media and receive the full response via OAuth2.

authentication: oauth2; path_radio_product_id: 12; path_station_id: 3; body_media_id: "media_456"; body_playing_media_id: "now_playing_789"; body_position: after; returnFullResponse: true

Example 3: Insert a media before an existing track to reorder the playlist.

authentication: apiKey; path_radio_product_id: 12; path_station_id: 3; body_media_id: "media_456"; body_playing_media_id: "now_playing_789"; body_position: before; returnFullResponse: false

Links

Discussion