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
Update type
PATCH
/
cms
/
types
/
v1
Copy
curl --request PATCH \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"base_type": "BASE_TYPE_UNSPECIFIED",
"type": {
"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"
},
"update_mask": "<string>"
}'
Copy
{
"type": {
"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"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request PATCH \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"base_type": "BASE_TYPE_UNSPECIFIED",
"type": {
"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"
},
"update_mask": "<string>"
}'
Copy
{
"type": {
"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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.