Get Started
Studio API
- Introduction
- Streaming
- CMS
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Banners
Create banner
CreateBanner
Creates new banner.
POST
/
cms
/
banners
/
v1
cURL
Copy
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"
}'
Copy
{
"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
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
.
cURL
Copy
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"
}'
Copy
{
"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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.