Update Image Number Prediction

Changed on
patch/image-number-predictions/{image_number_prediction_id}

Request

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

Request body

sponsor_idsstring[]

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

Response

200

idstring
pubnub_enabledboolean
urlstring
kindstring
program_idstring
client_idstring
created_atstring
published_atunknown
scheduled_atunknown
interactive_untilunknown
follow_up_urlstring
questionstring
required_correctstring
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
widget_interactions_url_templatestring
vote_urlstring
playback_time_msunknown

Example response

{
  "id": "bbc832e1-496e-403f-804e-4305e997b646",
  "pubnub_enabled": true,
  "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/bbc832e1-496e-403f-804e-4305e997b646/",
  "kind": "image-number-prediction",
  "program_id": "09d93835-ee52-4757-976c-ea09d6a5798c",
  "client_id": "8PqSNDgIVHnXuJuGte1HdvOjOqhCFE1ZCR3qhqaS",
  "created_at": "2023-12-01T09:13:25.147848Z",
  "follow_up_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/",
  "follow_ups": [
    {
      "id": "64bdaa5a-cc4e-41d2-9fea-382971668f70",
      "pubnub_enabled": true,
      "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/64bdaa5a-cc4e-41d2-9fea-382971668f70/",
      "program_id": "09d93835-ee52-4757-976c-ea09d6a5798c",
      "client_id": "8PqSNDgIVHnXuJuGte1HdvOjOqhCFE1ZCR3qhqaS",
      "image_number_prediction_id": "bbc832e1-496e-403f-804e-4305e997b646",
      "image_number_prediction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/bbc832e1-496e-403f-804e-4305e997b646/",
      "timeout": "P0DT00H00M30S",
      "created_at": "2023-12-01T09:13:25.179264Z",
      "subscribe_channel": "program.widget.09d93835-ee52-4757-976c-ea09d6a5798c",
      "kind": "image-number-prediction-follow-up",
      "options": [
        {
          "id": "c005e7c1-932e-40de-9e8b-a38bfb4a67bd",
          "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-options/c005e7c1-932e-40de-9e8b-a38bfb4a67bd/",
          "description": "test1",
          "correct_number": 2,
          "image_url": "http://www.google.com/",
          "translatable_fields": [
            "description"
          ]
        }
      ],
      "question": "test",
      "required_correct": "all",
      "publish_delay": "P0DT00H00M00S",
      "interaction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/64bdaa5a-cc4e-41d2-9fea-382971668f70/interactions/",
      "impression_url": "https://blast-prod-us-east-1.livelikeblast.com/api/v1/widget-impressions/image-number-prediction-follow-up/64bdaa5a-cc4e-41d2-9fea-382971668f70/",
      "status": "pending",
      "created_by": {
        "id": "fccbb60d-c8b0-49fd-958c-87dc8f059bf8"
      },
      "schedule_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-follow-ups/64bdaa5a-cc4e-41d2-9fea-382971668f70/schedule/",
      "claim_url": "https://blast-prod-us-east-1.livelikeblast.com/api/v1/widget-interaction-claims/image-number-prediction/bbc832e1-496e-403f-804e-4305e997b646/claims/",
      "widget_interactions_url_template": "https://cf-blast.livelikecdn.com/api/v1/profiles/{profile_id}/widget-interactions/?image_number_prediction_id=bbc832e1-496e-403f-804e-4305e997b646"
    }
  ],
  "question": "test",
  "required_correct": "all",
  "confirmation_message": "Alright! Stay tuned to see the result.",
  "timeout": "P0DT00H00M30S",
  "options": [
    {
      "id": "c005e7c1-932e-40de-9e8b-a38bfb4a67bd",
      "url": "https://cf-blast.livelikecdn.com/api/v1/image-number-prediction-options/c005e7c1-932e-40de-9e8b-a38bfb4a67bd/",
      "description": "test1",
      "correct_number": 2,
      "image_url": "http://www.google.com/",
      "translatable_fields": [
        "description"
      ]
    }
  ],
  "subscribe_channel": "program.widget.09d93835-ee52-4757-976c-ea09d6a5798c",
  "publish_delay": "P0DT00H00M00S",
  "interaction_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/bbc832e1-496e-403f-804e-4305e997b646/interactions/",
  "impression_url": "https://blast-prod-us-east-1.livelikeblast.com/api/v1/widget-impressions/image-number-prediction/bbc832e1-496e-403f-804e-4305e997b646/",
  "engagement_percent": "0.000",
  "status": "pending",
  "created_by": {
    "id": "fccbb60d-c8b0-49fd-958c-87dc8f059bf8"
  },
  "schedule_url": "https://cf-blast.livelikecdn.com/api/v1/image-number-predictions/bbc832e1-496e-403f-804e-4305e997b646/schedule/",
  "translatable_fields": [
    "question"
  ],
  "earnable_rewards": [
    {
      "reward_item_id": "053091d9-84cd-43c7-8c21-ddea5814ba8b",
      "reward_item_name": "Tarbooza",
      "reward_action_key": "prediction-correct",
      "reward_item_amount": 10
    }
  ],
  "widget_interactions_url_template": "https://cf-blast.livelikecdn.com/api/v1/profiles/{profile_id}/widget-interactions/?image_number_prediction_id=bbc832e1-496e-403f-804e-4305e997b646",
  "vote_url": "https://blast-prod-us-east-1.livelikeblast.com/api/v1/widget-interactions/image-number-prediction/bbc832e1-496e-403f-804e-4305e997b646/votes/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJnQUFBQUFCbGFhUWxwdXhxMWdQRW9rbXZMczdodDd2YWFrTkI3ak14UlhvNEUzUnNpOTNYN3o5aGpVUHlsQkZKeVprb2xralhOUmVyMkxwZ0hSZmtwVlp2ZlFLTWFaTGE2QT09IiwiaXNzIjoiYmxhc3QiLCJpYXQiOjE3MDE0MjIxMTd9.fGEMsLfEvraiJpAnCXwQ_6iancVMtVOlmGeCjtO9z2I/"
}

Changes