Docs > API > ContentType

ContentType is used to define an abstract content type for your account.
You can only use the ContentType constructor in a content type definition. The constructor takes two arguments: the content type name, and an object literal describing the fields defined for the content type.

For example:
new ContentType('Review', {
title: 'text',
'author-name': 'string',
description: { type:'text', schema: 'styled' },
embargoDate: 'date',
rating: 'number',
toprated: 'boolean'
});



Can't find what you're looking for?

Let us know and we'll see if we can help.