curl --request POST \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"id": "<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": "<unknown>",
"exclude_start": true,
"end": "<unknown>",
"exclude_end": true
},
"in": {
"values": [
"<unknown>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED",
"additional_fields": [
"<string>"
],
"editor_filter": {}
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<unknown>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED",
"settings": {
"allow_following": true,
"allow_push_notifications": true
}
}
'{
"type": {
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"id": "<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": "<unknown>",
"exclude_start": true,
"end": "<unknown>",
"exclude_end": true
},
"in": {
"values": [
"<unknown>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED",
"additional_fields": [
"<string>"
],
"editor_filter": {}
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<unknown>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED",
"settings": {
"allow_following": true,
"allow_push_notifications": true
}
}
}curl --request POST \
--url https://api.mottostreaming.com/cms/types/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"id": "<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": "<unknown>",
"exclude_start": true,
"end": "<unknown>",
"exclude_end": true
},
"in": {
"values": [
"<unknown>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED",
"additional_fields": [
"<string>"
],
"editor_filter": {}
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<unknown>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED",
"settings": {
"allow_following": true,
"allow_push_notifications": true
}
}
'{
"type": {
"project_id": "<string>",
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "<string>",
"id": "<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": "<unknown>",
"exclude_start": true,
"end": "<unknown>",
"exclude_end": true
},
"in": {
"values": [
"<unknown>"
]
},
"link_type": {
"type_ids": [
"<string>"
],
"base_type": "BASE_TYPE_UNSPECIFIED",
"additional_fields": [
"<string>"
],
"editor_filter": {}
},
"asset": {
"types": [
"<string>"
]
}
},
"default_value": "<unknown>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
]
}
],
"disabled": true,
"visibility": "VISIBILITY_UNSPECIFIED",
"settings": {
"allow_following": true,
"allow_push_notifications": true
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
BASE_TYPE_UNSPECIFIED, BASE_TYPE_EVENT, BASE_TYPE_CREATIVE_WORK, BASE_TYPE_ENTITY Show child attributes
VISIBILITY_UNSPECIFIED, VISIBILITY_PUBLISHED, VISIBILITY_UNLISTED, VISIBILITY_HIDDEN Show child attributes
OK
Show child attributes