Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Auto DJ > Media → Update Auto DJ Media

AI-generated

Summary

Updates an Auto DJ Media item in Infomaniak Streaming Radio.

Inputs

  • authentication — Authentication method to use for the Infomaniak API, either OAuth2 or API Key.
  • path_radio_product_id (required) — The unique identifier (ID) of the radio product to request.
  • path_station_id (required) — The unique identifier (ID) of the station to request.
  • path_media_id (required) — The unique identifier (ID) of the media to request.
  • bodyParameters — Additional fields to include in the request body for the media update.
  • returnFullResponse — When true, returns the full API response; otherwise returns a simple success indication.

Output shape

a single record representing the updated media

If Return Full Response is enabled, returns the full API response; otherwise returns a generic success object.

Examples

Example 1: Add a new song to the Auto DJ playlist using OAuth2 authentication.

authentication: oauth2; path_radio_product_id: 3; path_station_id: 7; path_media_id: "song_001"; bodyParameters: {body_name: "track.mp3", body_title: "My Song", body_artists: ["Artist"], body_albums: ["Album"], body_genres: ["Pop"], body_tags: ["new"]}; returnFullResponse: false

Example 2: Update an existing media item with full response details using API Key.

authentication: apiKey; path_radio_product_id: 3; path_station_id: 7; path_media_id: "song_001"; bodyParameters: {body_name: "track.mp3", body_title: "My Song", body_artists: ["Artist"], body_albums: ["Album"]}; returnFullResponse: true

Example 3: Update media without extra fields, returning only success.

authentication: oauth2; path_radio_product_id: 3; path_station_id: 7; path_media_id: "song_001"; returnFullResponse: false

Links

Discussion