POST
/
ott
/
page_components
/
v1

Authorizations

Authorization
string
header
required

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

Body

application/json
project_id
string
required
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.

environments
string[]

The environments in which this component should be rendered. The available options are: "web", "ios", "android", "tvos", "lg", "samsung", "androidtv" If left empty, the component will be rendered in all environments (when possible).

group_id
string

An arbitrary string that can be used to group components together. This is useful to render a group of components in a shared container so that they can be styled/positioned together. Any component that shares a group_id with another component must immediately precede or follow it. If a group_id is not provided, the component's own id will be used as the group_id.

name
string
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.
type
string

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

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

Response

200 - application/json
page_component
object