Create Content Types of Each Base Type - Documentation topics on: content type api,rest api,.

Create Content Types of Each Base Type

A new Content Type in dotCMS can be created via REST API of any of the several different types of Base Content Types that exist in dotCMS. Each of these different Base Content Types may have their own specific required system fields so that they operate in the same way within the system. Below are JSON file examples of how to create Content Types of each base type, including an example of how to inject more than one Content Type into the sytem at a time via REST API.

Content Type - No Identifier: Base Content Type
Content Type - With UUID: Base Content Type
Multiple Content Types: Base Content Type
Widget Content Type
Empty Widget Content Type
File Asset Content Type
Page Content Type
Persona Content Type

Each of the following code examples create new Content Types, assuming that the example code is placed in the bodyCreate.json which is being called by the following curl command:

curl -v -u admin@dotcms.com:admin -XPOST http://localhost:8080/api/v1/contenttype -H "Content-Type: application/json" --data @bodyCreate.json

Content Type - No Identifier: Base Content Type

Creates a standard Content Type without sending a custom identifier:

{
        "defaultType": false,
        "description": "test",
        "fields": [
            {
                "dataType": "SYSTEM",
                "dbColumn": "system_field1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1308941714000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableHostFolderField",
                "indexed": true,
                "listed": false,
                "modDate": 1478557845000,
                "name": "Host/Folder",
                "readOnly": false,
                "required": true,
                "searchable": true,
                "sortOrder": 1,
                "unique": false,
                "variable": "hostfolder"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT",
                    "FLOAT",
                    "INTEGER"
                ],
                "dataType": "TEXT",
                "dbColumn": "text1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1308941148000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTextField",
                "indexed": true,
                "listed": true,
                "modDate": 1478557845000,
                "name": "习近平谈新闻舆论工",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 2,
                "unique": false,
                "variable": "title"
            },
            {
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area2",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1453474468000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTagField",
                "indexed": true,
                "listed": false,
                "modDate": 1478557845000,
                "name": "Tags",
                "readOnly": false,
                "required": false,
                "searchable": true,
                "sortOrder": 3,
                "unique": false,
                "variable": "tags"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT"
                ],
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area3",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1411763369000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableWysiwygField",
                "indexed": false,
                "listed": false,
                "modDate": 1478557845000,
                "name": "Caption",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 4,
                "unique": false,
                "variable": "caption1"
            },
            {
                "acceptedDataTypes": [
                    "TEXT",
                    "BOOL",
                    "FLOAT",
                    "INTEGER"
                ],
                "dataType": "TEXT",
                "dbColumn": "text2",
                "defaultValue": "#000000",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1453472236000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableSelectField",
                "indexed": false,
                "listed": false,
                "modDate": 1478557845000,
                "name": "Text Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 5,
                "unique": false,
                "values": "Black|#000000\r\nWhite|#FFFFFF\r\nGrey|#666666",
                "variable": "textColor"
            },
            {
                "dataType": "SYSTEM",
                "dbColumn": "binary1",
                "fieldVariales": [],
                "fixed": false,
                "hint": "Recommended size 940x350",
                "iDate": 1308941399000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableBinaryField",
                "indexed": false,
                "listed": false,
                "modDate": 1478557845000,
                "name": "Image",
                "readOnly": false,
                "required": true,
                "searchable": false,
                "sortOrder": 6,
                "unique": false,
                "variable": "image"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area1",
                "defaultValue": "1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1412016702000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "listed": true,
                "modDate": 1478557845000,
                "name": "Layout",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 7,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/banner-layout.vtl')",
                "variable": "layout"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area4",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1412187539000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "listed": true,
                "modDate": 1478557845000,
                "name": "Background Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 8,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/color-picker.vtl')",
                "variable": "backgroundColor"
            }
        ],
        "fixed": false,
        "folder": "SYSTEM_FOLDER",
        "host": "48190c8c-42c4-46af-8d1a-0cd5db894797",
        "clazz": "com.dotcms.contenttype.model.type.ImmutableSimpleContentType",
        "multilingualable": false,
        "name": "Banner",
        "owner": "dotcms.org.1",
        "system": false,
        "variable": "Banner",
        "versionable": true
    } 

Content Type - With UUID: Base Content Type

Creates a standard Content Type with a custom UUID identifier:

{
        "defaultType": false,
        "description": "test",
        "fixed": false,
        "folder": "SYSTEM_FOLDER",
        "host": "48190c8c-42c4-46af-8d1a-0cd5db894797",
        "iDate": 1453474503000,
        "clazz": "com.dotcms.contenttype.model.type.ImmutableSimpleContentType",
        "inode": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
        "modDate": 1478557845000,
        "multilingualable": false,
        "name": "Banner",
        "owner": "dotcms.org.1",
        "permissionId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
        "permissionType": "com.dotmarketing.portlets.structure.model.Structure",
        "system": false,
        "variable": "Banner",
        "versionable": true,
        "fields": [
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "SYSTEM",
                "dbColumn": "system_field1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1308941714000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableHostFolderField",
                "indexed": true,
                "inode": "ee91a37d-9d9f-4488-a1ce-50516e5309dc",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Host/Folder",
                "readOnly": false,
                "required": true,
                "searchable": true,
                "sortOrder": 1,
                "unique": false,
                "variable": "hostfolder"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT",
                    "FLOAT",
                    "INTEGER"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "TEXT",
                "dbColumn": "text1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1308941148000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTextField",
                "indexed": true,
                "inode": "5c21daa4-1482-4bc9-9d61-04b42d35a6ee",
                "listed": true,
                "modDate": 1478557845000,
                "name": "习近平谈新闻舆论工",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 2,
                "unique": false,
                "variable": "title"
            },
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area2",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1453474468000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTagField",
                "indexed": true,
                "inode": "0030b173-41c4-40ae-8331-1c438fcb514e",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Tags",
                "readOnly": false,
                "required": false,
                "searchable": true,
                "sortOrder": 3,
                "unique": false,
                "variable": "tags"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area3",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1411763369000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableWysiwygField",
                "indexed": false,
                "inode": "abb57118-7979-400e-9e7d-208e9dfe1f64",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Caption",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 4,
                "unique": false,
                "variable": "caption1"
            },
            {
                "acceptedDataTypes": [
                    "TEXT",
                    "BOOL",
                    "FLOAT",
                    "INTEGER"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "TEXT",
                "dbColumn": "text2",
                "defaultValue": "#000000",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1453472236000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableSelectField",
                "indexed": false,
                "inode": "bd07dab3-c559-4d1b-873a-050e8cc6359c",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Text Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 5,
                "unique": false,
                "values": "Black|#000000\r\nWhite|#FFFFFF\r\nGrey|#666666",
                "variable": "textColor"
            },
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "SYSTEM",
                "dbColumn": "binary1",
                "fieldVariales": [],
                "fixed": false,
                "hint": "Recommended size 940x350",
                "iDate": 1308941399000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableBinaryField",
                "indexed": false,
                "inode": "fff86d86-7908-4922-aaed-a3e8b0c6aae4",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Image",
                "readOnly": false,
                "required": true,
                "searchable": false,
                "sortOrder": 6,
                "unique": false,
                "variable": "image"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area1",
                "defaultValue": "1",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1412016702000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "inode": "c4712e56-ec64-4795-8613-63dff910b34e",
                "listed": true,
                "modDate": 1478557845000,
                "name": "Layout",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 7,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/banner-layout.vtl')",
                "variable": "layout"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area4",
                "fieldVariales": [],
                "fixed": false,
                "iDate": 1412187539000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "inode": "46e98b70-d4f8-4dbe-9e12-eb65ae00a07e",
                "listed": true,
                "modDate": 1478557845000,
                "name": "Background Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 8,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/color-picker.vtl')",
                "variable": "backgroundColor"
            }
        ]

    }   

Multiple Content Types: Base Content Type

Creates multiple standard Content Types:

[
    {
        "defaultType": false,
        "description": "test",
        "fields": [
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "SYSTEM",
                "fieldVariables": [
                    {
                        "fieldId": "da05fd64-c3b0-4543-9886-a64c169c4aab",
                        "id": "b3e30700-4024-46c9-8124-e8c4154fa2cb",
                        "key": "werwer",
                        "modDate": 1479496985000,
                        "name": "",
                        "userId": "dotcms.org.1",
                        "value": "werew",
                        "clazz" : "com.dotcms.contenttype.model.field.ImmutableFieldVariable"
                    }
                ],
                "fixed": false,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableHostFolderField",
                "indexed": true,
                "inode": "ee91a37d-9d9f-4488-a1ce-50516e5309dc",
                "listed": false,
                "name": "Host/Folder",
                "readOnly": false,
                "required": true,
                "searchable": true,
                "sortOrder": 1,
                "unique": false,
                "variable": "hostfolder"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT",
                    "FLOAT",
                    "INTEGER"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "TEXT",
                "dbColumn": "text1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1308941148000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTextField",
                "indexed": true,
                "inode": "5c21daa4-1482-4bc9-9d61-04b42d35a6ee",
                "listed": true,
                "modDate": 1478557845000,
                "name": "\u4e60\u8fd1\u5e73\u8c08\u65b0\u95fb\u8206\u8bba\u5de5",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 2,
                "unique": false,
                "variable": "title"
            },
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area2",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1453474468000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableTagField",
                "indexed": true,
                "inode": "0030b173-41c4-40ae-8331-1c438fcb514e",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Tags",
                "readOnly": false,
                "required": false,
                "searchable": true,
                "sortOrder": 3,
                "unique": false,
                "variable": "tags"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area3",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1411763369000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableWysiwygField",
                "indexed": false,
                "inode": "abb57118-7979-400e-9e7d-208e9dfe1f64",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Caption",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 4,
                "unique": false,
                "variable": "caption1"
            },
            {
                "acceptedDataTypes": [
                    "TEXT",
                    "BOOL",
                    "FLOAT",
                    "INTEGER"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "TEXT",
                "dbColumn": "text2",
                "defaultValue": "#000000",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1453472236000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableSelectField",
                "indexed": false,
                "inode": "bd07dab3-c559-4d1b-873a-050e8cc6359c",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Text Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 5,
                "unique": false,
                "values": "Black|#000000\r\nWhite|#FFFFFF\r\nGrey|#666666",
                "variable": "textColor"
            },
            {
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "SYSTEM",
                "dbColumn": "binary1",
                "fieldVariables": [],
                "fixed": false,
                "hint": "Recommended size 940x350",
                "iDate": 1308941399000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableBinaryField",
                "indexed": false,
                "inode": "fff86d86-7908-4922-aaed-a3e8b0c6aae4",
                "listed": false,
                "modDate": 1478557845000,
                "name": "Image",
                "readOnly": false,
                "required": true,
                "searchable": false,
                "sortOrder": 6,
                "unique": false,
                "variable": "image"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area1",
                "defaultValue": "1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1412016702000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "inode": "c4712e56-ec64-4795-8613-63dff910b34e",
                "listed": true,
                "modDate": 1478557845000,
                "name": "Layout",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 7,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/banner-layout.vtl')",
                "variable": "layout"
            },
            {
                "acceptedDataTypes": [
                    "LONG_TEXT",
                    "TEXT"
                ],
                "contentTypeId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area4",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1412187539000,
                "clazz": "com.dotcms.contenttype.model.field.ImmutableCustomField",
                "indexed": true,
                "inode": "46e98b70-d4f8-4dbe-9e12-eb65ae00a07e",
                "listed": true,
                "modDate": 1478557845000,
                "name": "Background Color",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 8,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/color-picker.vtl')",
                "variable": "backgroundColor"
            }
        ],
        "fixed": false,
        "folder": "SYSTEM_FOLDER",
        "host": "48190c8c-42c4-46af-8d1a-0cd5db894797",
        "iDate": 1453474503000,
        "clazz": "com.dotcms.contenttype.model.type.ImmutableSimpleContentType",
        "inode": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
        "modDate": 1478557845000,
        "multilingualable": false,
        "name": "Banner",
        "owner": "dotcms.org.1",
        "permissionId": "4c441ada-944a-43af-a653-9bb4f3f0cb2b",
        "permissionType": "com.dotmarketing.portlets.structure.model.Structure",
        "system": false,
        "variable": "Banner2",
        "versionable": true
    },
    {
        "defaultType": false,
        "description": "Wiki Entry",
        "fields": [
            {
                "dataType": "SYSTEM",
                "dbColumn": "system_field1",
                "fieldVariables": [
                    {
                        "key": "testasd",
                        "modDate": 1479506692000,
                        "name": "",
                        "userId": "dotcms.org.1",
                        "value": "asdasdasd",
                        "clazz" : "com.dotcms.contenttype.model.field.ImmutableFieldVariable"
                    }
                ],
                "fixed": false,
                "iDate": 1352489401000,
                "clazz": "com.dotcms.contenttype.model.field.HostFolderField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Host/Folder",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 1,
                "unique": false,
                "variable": "hostfolder"
            },
            {
                "dataType": "DATE",
                "dbColumn": "date1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489482000,
                "clazz": "com.dotcms.contenttype.model.field.DateTimeField",
                "indexed": true,
                "listed": true,
                "modDate": 1395411079000,
                "name": "Sys Publish Date",
                "readOnly": false,
                "required": true,
                "searchable": true,
                "sortOrder": 2,
                "unique": false,
                "variable": "sysPublishDate"
            },
            {
                "dataType": "TEXT",
                "dbColumn": "text1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489522000,
                "clazz": "com.dotcms.contenttype.model.field.TextField",
                "indexed": true,
                "listed": true,
                "modDate": 1395411079000,
                "name": "Title",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 3,
                "unique": false,
                "variable": "title"
            },
            {
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489564000,
                "clazz": "com.dotcms.contenttype.model.field.CustomField",
                "indexed": true,
                "listed": false,
                "modDate": 1407252812000,
                "name": "URL Title",
                "readOnly": false,
                "required": true,
                "searchable": false,
                "sortOrder": 4,
                "unique": false,
                "values": "#dotParse('/application/vtl/custom-fields/url-title.vtl')",
                "variable": "urlTitle"
            },
            {
                "dataType": "TEXT",
                "dbColumn": "text2",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489616000,
                "clazz": "com.dotcms.contenttype.model.field.TextField",
                "indexed": true,
                "listed": true,
                "modDate": 1395411079000,
                "name": "Byline",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 5,
                "unique": false,
                "variable": "byline"
            },
            {
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area2",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489643000,
                "clazz": "com.dotcms.contenttype.model.field.TextAreaField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Lead",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": false,
                "searchable": false,
                "sortOrder": 6,
                "unique": false,
                "variable": "lead"
            },
            {
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area3",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489664000,
                "clazz": "com.dotcms.contenttype.model.field.WysiwygField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Story",
                "readOnly": false,
                "required": true,
                "searchable": false,
                "sortOrder": 7,
                "unique": false,
                "variable": "story"
            },
            {
                "dataType": "SYSTEM",
                "dbColumn": "binary1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489688000,
                "clazz": "com.dotcms.contenttype.model.field.BinaryField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Image",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 8,
                "unique": false,
                "variable": "image"
            },
            {
                "dataType": "TEXT",
                "dbColumn": "text3",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489743000,
                "clazz": "com.dotcms.contenttype.model.field.TextField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Caption",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": false,
                "searchable": false,
                "sortOrder": 9,
                "unique": false,
                "variable": "caption"
            },
            {
                "dataType": "SYSTEM",
                "dbColumn": "section_divider1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489779000,
                "clazz": "com.dotcms.contenttype.model.field.LineDividerField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Metadata",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 10,
                "unique": false,
                "variable": "metadata"
            },
            {
                "dataType": "TEXT",
                "dbColumn": "text4",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489810000,
                "clazz": "com.dotcms.contenttype.model.field.CategoryField",
                "indexed": true,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Topic",
                "readOnly": false,
                "required": false,
                "searchable": true,
                "sortOrder": 11,
                "unique": false,
                "values": "3d5d641b-e5fd-409e-a283-b6fe7ab780d1",
                "variable": "topic"
            },
            {
                "dataType": "LONG_TEXT",
                "dbColumn": "text_area4",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489845000,
                "clazz": "com.dotcms.contenttype.model.field.TagField",
                "indexed": true,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Tag",
                "readOnly": false,
                "required": false,
                "searchable": true,
                "sortOrder": 12,
                "unique": false,
                "variable": "tag"
            },
            {
                "dataType": "INTEGER",
                "dbColumn": "integer1",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489885000,
                "clazz": "com.dotcms.contenttype.model.field.TextField",
                "indexed": true,
                "listed": false,
                "modDate": 1395411079000,
                "name": "CommentsCount",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": false,
                "searchable": false,
                "sortOrder": 13,
                "unique": false,
                "variable": "commentscount"
            },
            {
                "dataType": "SYSTEM",
                "dbColumn": "section_divider2",
                "fieldVariables": [],
                "fixed": false,
                "iDate": 1352489917000,
                "clazz": "com.dotcms.contenttype.model.field.LineDividerField",
                "indexed": false,
                "listed": false,
                "modDate": 1395411079000,
                "name": "Relationships",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 14,
                "unique": false,
                "variable": "relationships"
            },
            {
                "dataType": "SYSTEM",
                "dbColumn": "system_field2",
                "fieldVariables": [],
                "fixed": false,
                "clazz": "com.dotcms.contenttype.model.field.RelationshipsTabField",
                "indexed": false,
                "listed": false,
                "name": "Relationships",
                "readOnly": false,
                "required": false,
                "searchable": false,
                "sortOrder": 15,
                "unique": false,
                "variable": "relationships1"
            }
        ],
        "fixed": false,
        "folder": "SYSTEM_FOLDER",
        "host": "SYSTEM_HOST",
        "clazz": "com.dotcms.contenttype.model.type.SimpleContentType",
        "name": "Wiki",
        "owner": "dotcms.org.1",
        "system": false,
        "variable": "Wiki"
    }
]   

Widget Content Type

Creates a Widget Content Type with a few fields and the widget code field parsing a .vtl file:

[ {
  "name" : "Photo Gallery",
  "description" : "Pulls a list of images based on folder",
  "defaultType" : false,
  "fixed" : false,
  "system" : false,
  "variable" : "PhotoGallery",
  "folder" : "SYSTEM_FOLDER",
  "clazz" : "com.dotcms.contenttype.model.type.WidgetContentType",
  "fields" : [ {
    "dataType" : "TEXT",
    "searchable" : true,
    "unique" : false,
    "indexed" : true,
    "listed" : true,
    "readOnly" : false,
    "name" : "Widget Title",
    "required" : true,
    "variable" : "widgetTitle",
    "sortOrder" : 1,
    "fixed" : true,
    "dbColumn" : "text1",
    "clazz" : "com.dotcms.contenttype.model.field.TextField",
    "fieldVariables" : [ ]
  }, {
    "dataType" : "SYSTEM",
    "searchable" : true,
    "unique" : false,
    "indexed" : true,
    "listed" : false,
    "readOnly" : true,
    "inode" : "00e8129f-092e-4bd5-ae7e-97331146571f",
    "modDate" : 1408051358000,
    "name" : "Widget Usage",
    "required" : false,
    "variable" : "widgetUsage",
    "sortOrder" : 2,
    "fixed" : true,
    "contentTypeId" : "4b1fc848-87f0-4efb-94a8-d04e11f5d3fc",
    "dbColumn" : "constant",
    "iDate" : 1408051358000,
    "clazz" : "com.dotcms.contenttype.model.field.TextAreaField",
    "fieldVariables" : [ ]
  }, {
    "dataType" : "SYSTEM",
    "searchable" : true,
    "unique" : false,
    "indexed" : true,
    "listed" : false,
    "readOnly" : true,
    "inode" : "f5ee963a-75ca-4941-ae11-d863a20e28b3",
    "modDate" : 1408051785000,
    "name" : "Widget Code",
    "required" : false,
    "variable" : "widgetCode",
    "sortOrder" : 3,
    "values" : "#dotParse('/application/vtl/widgets/image-gallery/image-gallery.vtl')",
    "fixed" : true,
    "contentTypeId" : "4b1fc848-87f0-4efb-94a8-d04e11f5d3fc",
    "dbColumn" : "constant",
    "iDate" : 1408051358000,
    "clazz" : "com.dotcms.contenttype.model.field.HiddenField",
    "fieldVariables" : [ ]
  }, {
    "dataType" : "SYSTEM",
    "searchable" : true,
    "unique" : false,
    "indexed" : true,
    "listed" : false,
    "readOnly" : true,
    "inode" : "cfb44c6a-ac81-434b-8fae-2bcc60b40fc1",
    "modDate" : 1408051358000,
    "name" : "Widget Pre-Execute",
    "required" : false,
    "variable" : "widgetPreexecute",
    "sortOrder" : 4,
    "fixed" : true,
    "contentTypeId" : "4b1fc848-87f0-4efb-94a8-d04e11f5d3fc",
    "dbColumn" : "constant",
    "iDate" : 1408051358000,
    "clazz" : "com.dotcms.contenttype.model.field.HiddenField",
    "fieldVariables" : [ ]
  }, {
    "indexed" : true,
    "dataType" : "SYSTEM",
    "searchable" : true,
    "unique" : false,
    "listed" : false,
    "readOnly" : false,
    "inode" : "26b73b2b-3904-40a2-8df9-f726baa81f79",
    "modDate" : 1408051454000,
    "name" : "Folder",
    "required" : true,
    "variable" : "folder1",
    "sortOrder" : 5,
    "fixed" : false,
    "contentTypeId" : "4b1fc848-87f0-4efb-94a8-d04e11f5d3fc",
    "dbColumn" : "system_field1",
    "iDate" : 1408051454000,
    "clazz" : "com.dotcms.contenttype.model.field.HostFolderField",
    "fieldVariables" : [ ]
  }, {
    "dataType" : "INTEGER",
    "searchable" : false,
    "unique" : false,
    "indexed" : false,
    "listed" : false,
    "readOnly" : false,
    "inode" : "6f49a823-fd3a-404e-b5fa-3fcb7d1af191",
    "modDate" : 1408051502000,
    "name" : "Number of Results",
    "required" : false,
    "variable" : "numberOfResults",
    "sortOrder" : 6,
    "fixed" : false,
    "contentTypeId" : "4b1fc848-87f0-4efb-94a8-d04e11f5d3fc",
    "dbColumn" : "integer1",
    "iDate" : 1408051502000,
    "clazz" : "com.dotcms.contenttype.model.field.TextField",
    "fieldVariables" : [ ]
  } ]
} ] 

Empty Widget Content Type

Creates an empty Widget Content Type:

[ {
  "name" : "TEST WIDGET Gallery",
  "description" : "Pulls a list of images based on folder",
  "defaultType" : false,
  "fixed" : false,
  "system" : false,
  "variable" : "testWidget",
  "folder" : "SYSTEM_FOLDER",
  "host" : "demo.dotcms.com",
  "clazz" : "com.dotcms.contenttype.model.type.WidgetContentType"
} ]

File Asset Content Type

Creates a File Asset Content Type:

[
    {
        "name": "TEST File Asset",
        "description": "Here is a test",
        "defaultType": false,
        "fixed": false,
        "system": false,
        "variable": "testFileAsset",
        "folder": "SYSTEM_FOLDER",
        "host": "demo.dotcms.com",
        "clazz": "com.dotcms.contenttype.model.type.FileAssetContentType",
        "fields": [
            {
                "dataType": "TEXT",
                "fixed": false,
                "clazz": "com.dotcms.contenttype.model.field.TextField",
                "indexed": true,
                "listed": true,
                "modDate": 1478557845000,
                "name": "习近平谈新闻舆论工",
                "readOnly": false,
                "regexCheck": "[^(<[.\\n]+>)]*",
                "required": true,
                "searchable": true,
                "sortOrder": 2,
                "unique": false,
                "variable": "myBigField"
            }
        ]
    }
]

Page Content Type

Creates a Page Content Type:

[{
    "name": "Simple Content Page",
    "variable": "SimpleHtmlPage3",
    "host": "SYSTEM_HOST",
    "folder": "SYSTEM_FOLDER",
    "clazz": "com.dotcms.contenttype.model.type.PageContentType",
    "fields": [{
        "dataType": "TEXT",
        "searchable": true,
        "indexed": true,
        "listed": true,
        "name": "Title",
        "required": true,
        "variable": "title",
        "values": "$velutil.mergeTemplate('/static/htmlpage_assets/title_custom_field.vtl')",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.CustomField"

    }, {
        "indexed": true,
        "dataType": "SYSTEM",
        "searchable": true,
        "name": "Host or Folder",
        "required": true,
        "variable": "hostfolder",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.HostFolderField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "searchable": true,
        "indexed": true,
        "listed": true,
        "inode": "1a800190-a71b-49b5-bc14-9db7ca5b3f20",
        "name": "Url",
        "required": true,
        "variable": "url",
        "clazz": "com.dotcms.contenttype.model.field.TextField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "searchable": true,
        "indexed": true,
        "listed": true,
        "name": "Cache TTL",
        "required": true,
        "variable": "cachettl",
        "values": "$velutil.mergeTemplate('/static/htmlpage_assets/cachettl_custom_field.vtl')",
        "regexCheck": "^[0-9]+$",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.CustomField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "searchable": true,
        "indexed": true,
        "name": "Template",
        "required": true,
        "variable": "template",
        "values": "$velutil.mergeTemplate('/static/htmlpage_assets/template_custom_field.vtl')",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.CustomField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "indexed": true,
        "inode": "b4258569-abc6-4d3d-9a99-174e46a77b0f",
        "name": "Show On Menu",
        "variable": "showOnMenu",
        "values": "|true",
        "defaultValue": "false",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.CheckboxField",
        "fieldVariables": []
    }, {
        "dataType": "LONG_TEXT",
        "name": "Content",
        "variable": "content",
        "clazz": "com.dotcms.contenttype.model.field.WysiwygField",
        "fieldVariables": []
    }, {
        "dataType": "SYSTEM",
        "name": "Advanced Properties",
        "variable": "advancedtab",
        "dbColumn": "section_divider1",
        "clazz": "com.dotcms.contenttype.model.field.TabDividerField",
        "fieldVariables": []
    }, {
        "dataType": "INTEGER",
        "searchable": true,
        "indexed": true,

        "name": "Sort Order",
        "required": true,
        "variable": "sortOrder",
        "defaultValue": "0",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.TextField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "searchable": true,
        "indexed": true,
        "name": "Friendly Name",
        "variable": "friendlyname",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.TextField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "searchable": true,

        "indexed": true,
        "listed": true,
        "name": "Redirect URL",
        "variable": "redirecturl",
        "values": "$velutil.mergeTemplate('/static/htmlpage_assets/redirect_custom_field.vtl')",
        "fixed": true,

        "clazz": "com.dotcms.contenttype.model.field.CustomField",
        "fieldVariables": []
    }, {
        "dataType": "TEXT",
        "indexed": true,

        "modDate": 1422646720000,
        "name": "HTTPS Required",
        "variable": "httpsreq",
        "values": "|true",
        "defaultValue": "false",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.CheckboxField",
        "fieldVariables": []
    }, {
        "dataType": "LONG_TEXT",
        "searchable": true,
        "indexed": true,
        "name": "SEO Description",
        "variable": "seodescription",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.TextAreaField",
        "fieldVariables": []
    }, {
        "dataType": "LONG_TEXT",
        "searchable": true,
        "indexed": true,
        "name": "SEO Keywords",
        "variable": "seokeywords",
        "fixed": true,
        "clazz": "com.dotcms.contenttype.model.field.TextAreaField",
        "fieldVariables": []
    }, {
        "dataType": "LONG_TEXT",
        "searchable": true,

        "indexed": true,

        "name": "Page Metadata",

        "variable": "pagemetadata",
        "sortOrder": 15,
        "fixed": true,

        "clazz": "com.dotcms.contenttype.model.field.TextAreaField",
        "fieldVariables": []
    }]
}]

Persona Content Type

Creates a Persona Content Type:

{
    "clazz": "com.dotcms.contenttype.model.type.PersonaContentType",
    "description": "ANOTHER Structure for Personas",
    "defaultType": false,
    "system": false,
    "folder": "SYSTEM_FOLDER",
    "name": "Persona Test",
    "variable": "personaTest",
    "host": "SYSTEM_HOST",
    "fixed": false,
    "fields": [
        {
            "clazz": "com.dotcms.contenttype.model.field.HostFolderField",
            "indexed": true,
            "dataType": "SYSTEM",
            "readOnly": false,
            "required": true,
            "searchable": true,
            "listed": false,
            "sortOrder": 1,
            "unique": false,
            "name": "Site/Folder",
            "variable": "hostFolder",
            "fixed": true
        },
        {
            "clazz": "com.dotcms.contenttype.model.field.TextField",
            "indexed": true,
            "dataType": "TEXT",
            "readOnly": false,
            "required": true,
            "searchable": true,
            "listed": true,
            "sortOrder": 2,
            "unique": false,
            "name": "Name",
            "variable": "name",
            "fixed": true
        },
        {
            "clazz": "com.dotcms.contenttype.model.field.CustomField",
            "indexed": true,
            "dataType": "TEXT",
            "values": "$velutil.mergeTemplate('/static/personas/keytag_custom_field.vtl')",
            "regexCheck": "[a-zA-Z0-9]+",
            "readOnly": false,
            "required": true,
            "searchable": true,
            "listed": true,
            "sortOrder": 3,
            "unique": false,
            "name": "Key Tag",
            "variable": "keyTag",
            "fixed": true
        },
        {
            "clazz": "com.dotcms.contenttype.model.field.BinaryField",
            "indexed": false,
            "dataType": "SYSTEM",
            "readOnly": false,
            "required": false,
            "searchable": false,
            "listed": false,
            "sortOrder": 4,
            "unique": false,
            "name": "Photo",
            "variable": "photo",
            "fixed": true,
            "id": "07cfbc2c-47de-4c78-a411-176fe8bb24a5"
        },
        {
            "clazz": "com.dotcms.contenttype.model.field.TagField",
            "indexed": true,
            "dataType": "LONG_TEXT",
            "readOnly": false,
            "required": false,
            "searchable": true,
            "listed": false,
            "sortOrder": 5,
            "unique": false,
            "name": "Other Tags",
            "variable": "tags",
            "fixed": true
        },
        {
            "clazz": "com.dotcms.contenttype.model.field.TextAreaField",
            "indexed": true,
            "dataType": "LONG_TEXT",
            "readOnly": false,
            "required": false,
            "searchable": true,
            "listed": false,
            "sortOrder": 6,
            "unique": false,
            "name": "Description",
            "variable": "description",
            "fixed": true
        }
    ]
}