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>",
"offset": "<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": {},
"is_preview": true,
"source_banner_id": "<string>"
},
"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>",
"offset": "<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": {},
"is_preview": true,
"source_banner_id": "<string>"
}
}UpdateBanner
Updates an existing banner.
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>",
"offset": "<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": {},
"is_preview": true,
"source_banner_id": "<string>"
},
"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>",
"offset": "<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": {},
"is_preview": true,
"source_banner_id": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
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).
Show child attributes