Create an Image Number Prediction

Changed on
post/image-number-predictions/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1
  • URL
    https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/
  • Auth
    none required

Request body

program_idstring required

The id of the program to create the Image Number Prediction for

questionstring required

The question or prompt asked by the Image Number Prediction

interactive_untilstring date

The UTC time that the widget will stop accepting interactions

playback_time_msinteger

Video playback time in milliseconds

sponsor_idsstring[]

Links the sponsors with this Prediction. Note that only valid sponsor_ids will be linked to a Prediction.

Response

201

idstring
urlstring
kindstring
program_idstring
client_idstring
created_atstring
interactive_untilstring
published_atstring
scheduled_atstring
follow_up_urlstring
questionstring
confirmation_messagestring
timeoutstring
subscribe_channelstring
program_date_timeunknown
publish_delaystring
interaction_urlstring
impression_urlstring
impression_countinteger
unique_impression_countinteger
engagement_countinteger
engagement_percentstring
statusstring
schedule_urlstring
rewards_urlunknown
translationsobject
translatable_fieldsstring[]
custom_dataunknown
playback_time_msunknown
widget_interactions_url_templatestring
vote_urlstring

Example response

{
  "id": "c7ab6070-6657-438c-8b7f-aef3cf0eb177",
  "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/c7ab6070-6657-438c-8b7f-aef3cf0eb177/",
  "kind": "image-number-prediction",
  "program_id": "08e63adf-0a8a-4489-b6c7-7806c0847d73",
  "client_id": "LT9lUmrzSqXvAL66rSWSGK0weclpFNbHANUTxW9O",
  "created_at": "2021-09-22T20:30:19.500567Z",
  "interactive_until": "2022-01-18T18:53:56.510Z",
  "published_at": "2021-09-22T20:30:20.407771Z",
  "scheduled_at": "2021-09-22T20:30:20.258817Z",
  "follow_up_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/",
  "follow_ups": [
    {
      "id": "c3908afa-8e99-4a66-bf96-645b9b021f32",
      "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/c3908afa-8e99-4a66-bf96-645b9b021f32/",
      "program_id": "08e63adf-0a8a-4489-b6c7-7806c0847d73",
      "client_id": "LT9lUmrzSqXvAL66rSWSGK0weclpFNbHANUTxW9O",
      "image_number_prediction_id": "c7ab6070-6657-438c-8b7f-aef3cf0eb177",
      "image_number_prediction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/c7ab6070-6657-438c-8b7f-aef3cf0eb177/",
      "timeout": "P0DT00H00M15S",
      "published_at": "2021-09-22T20:30:38.221591Z",
      "scheduled_at": "2021-09-22T20:30:38.030007Z",
      "created_at": "2021-09-22T20:30:19.659011Z",
      "subscribe_channel": "program.widget.c7ab6070-6657-438c-8b7f-aef3cf0eb177",
      "kind": "image-number-prediction-follow-up",
      "options": [
        {
          "id": "7353e785-c1d3-4c42-a670-b117cd6bb5d0",
          "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-options/7353e785-c1d3-4c42-a670-b117cd6bb5d0/",
          "description": "Seattle Seahawks",
          "image_url": "https://cf-blast-storage.livelikecdn.com/assets/576d3433-2aa1-4a81-8a64-ddb79a609a99.jpg",
          "translatable_fields": [
            "description"
          ]
        }
      ],
      "question": "What will be the final score for each team?",
      "publish_delay": "P0DT00H00M00S",
      "interaction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/c3908afa-8e99-4a66-bf96-645b9b021f32/interactions/",
      "impression_url": "https://blastrt-prod-us-east-1.livelikecdn.com/api/v1/widget-impressions/image-number-prediction-follow-up/c3908afa-8e99-4a66-bf96-645b9b021f32/",
      "status": "published",
      "created_by": {
        "id": "8ee9168e-00ba-4206-a870-6eff6a052cf6"
      },
      "schedule_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/c3908afa-8e99-4a66-bf96-645b9b021f32/schedule/",
      "claim_url": "https://blastrt-prod-us-east-1.livelikecdn.com/api/v1/widget-interaction-claims/image-number-prediction/c7ab6070-6657-438c-8b7f-aef3cf0eb177/claims/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJnQUFBQUFCaFM1SzdsWWEtcnhYNEZ3YXhBUEZoQXRXN1N6aG1oaHVUODNmY3RILTVEYUx6ZWRhSTlSXzNySlFvTEYybzFLYWFNN1ZXN180ckpUdVVfWDNmRURYOUI0UXl1TldrLU1LZnlqaFdNa0hJZ21WdnpWNEVPSDVyNjUxc0M3NmlubzVLdHFVcHpva0xNZzlLbkxiRzUxQ2tRZGpySkktWkpscVRUXzd0dzFRMkdoVUQ0SU1oX084M2NETGNKaFZQenVNQ1FCZjUiLCJpc3MiOiJibGFzdCIsImlhdCI6MTYzMjM0MjYxOX0.DVanGjbuIVJcXrkEKsEibwG9fNmHBVK-ZX0Yv_vOeBk/",
      "widget_interactions_url_template": "https://cf-blast.livelikecdn.com/api/v1/profiles/{profile_id}/widget-interactions/?image_number_prediction_id=c7ab6070-6657-438c-8b7f-aef3cf0eb177"
    }
  ],
  "question": "What will be the final score for each team?",
  "confirmation_message": "Alright! Stay tuned to see the result.",
  "timeout": "P0DT00H00M15S",
  "options": [
    {
      "id": "7353e785-c1d3-4c42-a670-b117cd6bb5d0",
      "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-options/7353e785-c1d3-4c42-a670-b117cd6bb5d0/",
      "description": "Seattle Seahawks",
      "image_url": "https://cf-blast-storage.livelikecdn.com/assets/576d3433-2aa1-4a81-8a64-ddb79a609a99.jpg",
      "translatable_fields": [
        "description"
      ]
    }
  ],
  "subscribe_channel": "program.widget.c7ab6070-6657-438c-8b7f-aef3cf0eb177",
  "publish_delay": "P0DT00H00M00S",
  "interaction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/c7ab6070-6657-438c-8b7f-aef3cf0eb177/interactions/",
  "impression_url": "https://blastrt-prod-us-east-1.livelikecdn.com/api/v1/widget-impressions/image-number-prediction/c7ab6070-6657-438c-8b7f-aef3cf0eb177/",
  "engagement_percent": "0.000",
  "status": "published",
  "created_by": {
    "id": "8ee9168e-00ba-4206-a870-6eff6a052cf6"
  },
  "schedule_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/c7ab6070-6657-438c-8b7f-aef3cf0eb177/schedule/",
  "translatable_fields": [
    "question"
  ],
  "widget_interactions_url_template": "https://cf-blast.livelikecdn.com/api/v1/profiles/{profile_id}/widget-interactions/?image_number_prediction_id=c7ab6070-6657-438c-8b7f-aef3cf0eb177",
  "vote_url": "https://blastrt-prod-us-east-1.livelikecdn.com/api/v1/widget-interactions/image-number-prediction/c7ab6070-6657-438c-8b7f-aef3cf0eb177/votes/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJnQUFBQUFCaFM1SzdzLWFHUXRDNHN5SnlBb2xMLTgzYzN2ODdsTUNiNFdVWG4wSXVvMVJEUmdYOHBCWmh0SjkwZHkwUzV4OFdyRnpNc1ZpVUFMc0toejlVSllocVA2WXEzZz09IiwiaXNzIjoiYmxhc3QiLCJpYXQiOjE2MzIzNDI3MTV9.dxtu5qEg5T_3sgdsSJoh6URdtWtAGRfTfOS_DA4C-zk/"
}

Changes