PATCH
/
monetization
/
offers
/
v1
/
{offer_id}
curl --request PATCH \
  --url https://api.mottostreaming.com/monetization/offers/v1/{offer_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "offer_id": "<string>",
  "offer": {
    "project_id": "<string>",
    "name": "<string>",
    "cleeng_offer_id": "<string>",
    "applies_to_all": true,
    "target": {
      "entity_ids": [
        "<string>"
      ],
      "event_ids": [
        "<string>"
      ],
      "creative_work_ids": [
        "<string>"
      ],
      "content_start_time": "2023-11-07T05:31:56Z",
      "content_end_time": "2023-11-07T05:31:56Z"
    },
    "localized_title": {},
    "localized_description": {},
    "localized_logo_asset_id": {},
    "localized_image_asset_id": {},
    "offer_prices": [
      {
        "id": "<string>",
        "msrp_price": {
          "currency_code": "<string>",
          "units": "<string>",
          "nanos": 123
        },
        "price": {
          "currency_code": "<string>",
          "units": "<string>",
          "nanos": 123
        },
        "geo_restrictions_disallow": {
          "country_codes": [
            "<string>"
          ]
        },
        "geo_restrictions_allow": {
          "country_codes": [
            "<string>"
          ]
        },
        "billing_period": "BILLING_PERIOD_UNSPECIFIED",
        "access_period": "ACCESS_PERIOD_UNSPECIFIED",
        "priority": "<string>"
      }
    ],
    "priority": "<string>",
    "concurrency_limit": "<string>",
    "visibility": "VISIBILITY_UNSPECIFIED"
  },
  "update_mask": "<string>"
}'
{
  "offer": {
    "id": "<string>",
    "project_id": "<string>",
    "name": "<string>",
    "cleeng_offer_id": "<string>",
    "applies_to_all": true,
    "target": {
      "entity_ids": [
        "<string>"
      ],
      "event_ids": [
        "<string>"
      ],
      "creative_work_ids": [
        "<string>"
      ],
      "content_start_time": "2023-11-07T05:31:56Z",
      "content_end_time": "2023-11-07T05:31:56Z"
    },
    "localized_title": {},
    "localized_description": {},
    "localized_logo_asset_id": {},
    "localized_image_asset_id": {},
    "offer_prices": [
      {
        "id": "<string>",
        "msrp_price": {
          "currency_code": "<string>",
          "units": "<string>",
          "nanos": 123
        },
        "price": {
          "currency_code": "<string>",
          "units": "<string>",
          "nanos": 123
        },
        "geo_restrictions_disallow": {
          "country_codes": [
            "<string>"
          ]
        },
        "geo_restrictions_allow": {
          "country_codes": [
            "<string>"
          ]
        },
        "billing_period": "BILLING_PERIOD_UNSPECIFIED",
        "access_period": "ACCESS_PERIOD_UNSPECIFIED",
        "priority": "<string>"
      }
    ],
    "priority": "<string>",
    "concurrency_limit": "<string>",
    "visibility": "VISIBILITY_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

offer_id
string
required

Body

application/json
offer_id
string
required
offer
object
required

Offer represents a collection of video content that end users can purchase. This can be used e.g. to define Entitlements against.

update_mask
string

Response

200
application/json
OK
offer
object

Offer represents a collection of video content that end users can purchase. This can be used e.g. to define Entitlements against.