PATCH
/
cms
/
types
/
v1
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>"
}'
{
  "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

Authorization
string
header
required

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

Body

application/json
base_type
enum<string>
required
Available options:
BASE_TYPE_UNSPECIFIED,
BASE_TYPE_EVENT,
BASE_TYPE_CREATIVE_WORK,
BASE_TYPE_ENTITY
type
object
required
update_mask
string
required

Response

200
application/json
OK
type
object