Skip to main content
PATCH
/
cms
/
banners
/
v2
/
{banner_id}
cURL
curl --request PATCH \
  --url https://api.mottostreaming.com/cms/banners/v2/{banner_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "banner_id": "<string>",
  "banner_update": {
    "project_id": "<string>",
    "name": "<string>",
    "banner_type": "BANNER_TYPE_UNSPECIFIED",
    "template_type": "<string>",
    "content_id": "<string>",
    "dynamic_target": {
      "filter": "<string>",
      "order_by": "<string>"
    },
    "background_assets": [
      {
        "options": [
          {
            "asset_id": {
              "asset_id": {}
            },
            "keypath": "<string>"
          }
        ],
        "breakpoint_width": 123
      }
    ],
    "data": {},
    "environments": [
      "<string>"
    ],
    "css_classes": [
      "<string>"
    ],
    "visibility": "VISIBILITY_UNSPECIFIED",
    "overrides": {},
    "geo_applicability_exempt": {
      "country_codes": [
        "<string>"
      ]
    },
    "geo_applicability_apply": {
      "country_codes": [
        "<string>"
      ]
    },
    "destination_url": {}
  },
  "update_mask": "<string>"
}
'
{
  "banner": {
    "project_id": "<string>",
    "name": "<string>",
    "banner_type": "BANNER_TYPE_UNSPECIFIED",
    "template_type": "<string>",
    "id": "<string>",
    "content_id": "<string>",
    "dynamic_target": {
      "filter": "<string>",
      "order_by": "<string>"
    },
    "background_assets": [
      {
        "options": [
          {
            "asset_id": {
              "asset_id": {}
            },
            "keypath": "<string>"
          }
        ],
        "breakpoint_width": 123
      }
    ],
    "data": {},
    "environments": [
      "<string>"
    ],
    "css_classes": [
      "<string>"
    ],
    "visibility": "VISIBILITY_UNSPECIFIED",
    "overrides": {},
    "geo_applicability_exempt": {
      "country_codes": [
        "<string>"
      ]
    },
    "geo_applicability_apply": {
      "country_codes": [
        "<string>"
      ]
    },
    "destination_url": {}
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

banner_id
string
required

Body

application/json
banner_id
string
required
banner_update
object
required

Banner represents a single banner that can be displayed on an end-user facing web/app page. Banners can be either static (with fixed content) or dynamic (content derived from parameters).

update_mask
string<field-mask>
required

Response

OK

banner
object

Banner represents a single banner that can be displayed on an end-user facing web/app page. Banners can be either static (with fixed content) or dynamic (content derived from parameters).