Actions141
- Auto DJ Actions
- Auto DJ > Events Actions
- Auto DJ > Media Actions
- Auto DJ > Playing Playlist Actions
- Auto DJ > Playlist Actions
- Encoder Events Actions
- Hls Stream Actions
- Mediapulse Actions
- Notifications Actions
- Options Actions
- Packs Actions
- Players Actions
- Radio Product Options Actions
- Radio Products Actions
- Server Events Actions
- Stations Actions
- Stats > Hls Stream Actions
- Stats > Radio Products Actions
- Stats > Stations Actions
- Get Status
- Get Instant Listeners
- Get Stats Listeners
- Get Mediastats
- Set Metadata To Station
- Get Listeners
- Get Listeners Per Minute
- Get Listeners Per Minute Per Stream
- Get Countries
- Get Countries By Continent
- Get Listeners By Stream
- Get Consumption
- Get Total Consumption
- Get Consumption By Stream
- Get Players
- Get Total Players
- Get Stats By Streams
- Export Stats
- Export Stats By Stream
- List Stats Links
- Stats > Streams Actions
- Streams Actions
- Transcodings Actions
Auto DJ > Playing Playlist → Insert Media After
AI-generatedSummary
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