POST
/
cms
/
banners
/
v1
cURL
curl --request POST \
  --url https://api.mottostreaming.com/cms/banners/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "<string>",
  "name": "<string>",
  "destination_url": {},
  "texts": [
    {
      "text": {},
      "color": "<string>",
      "background_color": "<string>",
      "font_family": "<string>",
      "is_button": true
    }
  ],
  "background_assets": [
    {
      "asset_id": {},
      "loop": true,
      "breakpoint_width": 123
    }
  ],
  "visibility": "VISIBILITY_UNSPECIFIED"
}'
{
  "banner": {
    "id": "<string>",
    "project_id": "<string>",
    "name": "<string>",
    "destination_url": {},
    "texts": [
      {
        "text": {},
        "color": "<string>",
        "background_color": "<string>",
        "font_family": "<string>",
        "is_button": true
      }
    ],
    "background_assets": [
      {
        "asset_id": {},
        "loop": true,
        "breakpoint_width": 123
      }
    ],
    "visibility": "VISIBILITY_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Banner represents a single banner that can be displayed on an end-user facing web/app page.

Response

200
application/json

OK

The response is of type object.