📖
API documentation
  • 🚀 Dashboard
  • 📅Changelog
  • 💾Deprecations
  • 🛠️Resources
    • Artist
    • ArtistRole
    • AppleArtist
    • AssetAttachment
    • Availability
    • Booklet
    • Company
    • Continent
    • Currency
    • Customisation
    • Distributor
    • DistributorPriceCode
    • DistributorProductSubgenres
    • Dsp
    • DspState
    • DspTag
    • DspUploadIdentification
    • Gender
    • ImportTask
    • ImportTask [NEW]
    • Label
    • Language
    • Offer
    • Playlist
    • Product
    • ProductGenre
    • ProductType
    • Quotas
    • Record
    • Retail
    • Role
    • Right
    • SendTask
    • SendTaskFactory
    • SpotifyArtist
    • Tag
    • Territory
    • Track
    • TrackOffer
    • TrackVideo
    • Video
    • Webhooks
  • 💡Best practices
    • JSON API documentation
    • Perform your first request
    • Make specific JSON API request
    • Manage the static resources
    • List of common HTTP status codes
    • ⁉️Timeouts and Errors
  • 🖥️Tutorials
    • Full Scenario
    • Managing artists
    • Upload a Dolby Atmos
    • Set a timed release
    • Update Scenario
  • 🔗Exports
    • Daily Trends export
  • 📡Webhooks
    • Presentation
Powered by GitBook
On this page
  1. 🖥️Tutorials

Set a timed release

PreviousUpload a Dolby AtmosNextUpdate Scenario

Last updated 5 months ago

CtrlK

For relevant platforms supporting release time, it is possible to set a specific Release Time for products through a dedicated offer.

To do this, we will create a specific offer on a platform and enable UTC time, corresponding to a 'Global Timed Release' (option: release_time_global). We will also specify a release time in thehh:mm format (option: release_time)

In this case the product will be set at 10:00 UTC time, therefore released at 19:00 in Japan, 15:30 in India, 13:00 in Egypt, 12:00 in France, 07:00 in Argentina, etc.

response = RestClient.post(
             "https://api.idol.io/api/v2/offers",
             {
               "data": {
                 "attributes": {
                   "status": "active",
                   "release-date": "2025-01-01",
                   "options":[
                     {
                       "name":"release_time",
                       "value":"10:00"
                     },
                     {
                       "name":"release_time_global",
                       "value":true
                     }
                   ],
                   "is-default": false
                 },
                 "relationships": {
                   "product": {
                     "data": {
                       "type": "products",
                       "id": "214477"
                     }
                   },
                   "dsp-upload-identifications": {
                     "data": [{
                       "type": "dsp-upload-identifications",
                       "id": "374"
                       }]
                     }
                   },
                   "type": "offers"
                 }
               }.to_json,
             "Content-Type": 'application/vnd.api+json',
             "Authorization": "Bearer <token>"
            )

specific_offer_id = JSON.parse(response)['data']['id']
// => 377752