Docs » Importing Custom Data

Webhook allows you to import data in the form of a JSON file into your site. Upload your data by clicking on the Backups and Data menu item on the left side of your CMS. Uploaded data must conform to a predefined format explained below. There are three key areas of your CMS that you can import to: content types, data for those content types, and site settings. You can import all three at once, or each independently.

{
"contentType": {...},
"data": {...},
"settings": {...}
}

The easiest way to see how data should be formatted is to save a backup and open up the downloaded JSON file in a text editor.

Importing data will overwrite existing data!

Before importing data, download a backup. When you import data into your CMS, all previous data at that key will first be removed. For example, uploading a JSON file with {"contentType": {...}"} will remove all content types before importing the content types in the file. It will not remove your item data or site settings.

##Content Types

Content Types are what defines your site. They let the CMS know what your forms look like and what kind of data should be stored. Here is an example of what a blog content type might look like. Each content type has three properties.

Five controls are automatically added to every content type upon creation: Name, Create Date, Last Updated, Publish Date, and Preview URL. With the exception of Name and Publish Date, they are all hidden and data is automatically generated for them.

###name
Required, string. The name is what you want the content type to be called.

###oneOff
Required, boolean. oneOff tells the system if there are one or many items within this content type

##controls
Required, array. controls determine which widgets show up in the data entry form and tells the CMS how the data should be stored. All controls are formatted like the following: