POST
/
ott
/
page_components
/
v1

Authorizations

Authorization
string
headerrequired

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

Body

application/json
project_id
string
required
name
string
type
string

The type of component that should be rendered. Refer to the documentation to find the available types.

data
object

Data needed by individual components. Each component can have its own data structure. Refer to the documentation for the specific component to see what data is needed.

props
object

Additional properties that can be used to customize the rendering of this component. This can be used in two ways:

  1. If you are using the Motto OTT platform, you can find the available keys and values in our OTT documentation.
  2. If you are rendering the component yourself, you can use this map to pass arbitrary data to your rendering engine.
environments
string[]

The environments in which this component should be rendered. E.g. "web", "mobile", "tv". If left empty, the component will be rendered in all environments (when possible).

visibility
enum<string>
Available options:
VISIBILITY_UNSPECIFIED,
VISIBILITY_PUBLISHED,
VISIBILITY_UNLISTED,
VISIBILITY_HIDDEN

Response

200 - application/json
page_component
object