Get Started
Studio API
- Introduction
- Streaming
- CMS
- Events
- Creative Works
- Entities
- Content Types
- Annotations
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Content Types
List types
GET
/
cms
/
types
/
v1
curl --request GET \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>'
{
"types": [
{
"id": "<string>",
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"field_groups": [
{
"title": "<string>",
"fields": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "FIELD_TYPE_UNSPECIFIED",
"input_type": "INPUT_TYPE_UNSPECIFIED",
"validations": {
"count": {
"min": "<string>",
"max": "<string>"
},
"length": {
"min": "<string>",
"max": "<string>"
},
"range": {
"start": "<any>",
"exclude_start": true,
"end": "<any>",
"exclude_end": true
},
"in": {
"values": [
"<any>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED"
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<any>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED"
}
],
"next_page_token": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Available options:
BASE_TYPE_UNSPECIFIED
, BASE_TYPE_EVENT
, BASE_TYPE_CREATIVE_WORK
, BASE_TYPE_ENTITY
Response
200
application/json
OK
Available options:
BASE_TYPE_UNSPECIFIED
, BASE_TYPE_EVENT
, BASE_TYPE_CREATIVE_WORK
, BASE_TYPE_ENTITY
Available options:
FIELD_TYPE_UNSPECIFIED
, FIELD_TYPE_STRING
, FIELD_TYPE_INTEGER
, FIELD_TYPE_DOUBLE
, FIELD_TYPE_DATETIME
, FIELD_TYPE_BOOLEAN
, FIELD_TYPE_LINK
, FIELD_TYPE_ASSET
, FIELD_TYPE_OBJECT
Available options:
INPUT_TYPE_UNSPECIFIED
, INPUT_TYPE_COLOR_PICKER
, INPUT_TYPE_TEXTAREA
Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
Available options:
VISIBILITY_UNSPECIFIED
, VISIBILITY_PUBLISHED
, VISIBILITY_UNLISTED
, VISIBILITY_HIDDEN
Available options:
VISIBILITY_UNSPECIFIED
, VISIBILITY_PUBLISHED
, VISIBILITY_UNLISTED
, VISIBILITY_HIDDEN
curl --request GET \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>'
{
"types": [
{
"id": "<string>",
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"field_groups": [
{
"title": "<string>",
"fields": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "FIELD_TYPE_UNSPECIFIED",
"input_type": "INPUT_TYPE_UNSPECIFIED",
"validations": {
"count": {
"min": "<string>",
"max": "<string>"
},
"length": {
"min": "<string>",
"max": "<string>"
},
"range": {
"start": "<any>",
"exclude_start": true,
"end": "<any>",
"exclude_end": true
},
"in": {
"values": [
"<any>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED"
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<any>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED"
}
],
"next_page_token": "<string>"
}