Create Content Model
POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/content/models
name | description |
---|---|
label | [string] Required. Display Name |
name | [string] Required. Parsley Reference Name |
type | [string] Required. Content Model Type. Values: dataset , templateset , pageset |
description | [string] Additional context |
listed | [boolean] Listed models have their content items available to programatic navigation calls. Default to false |
parentZUID | [zuid] Model's Parent |
masterZUID | [zuid] Model ZUID If Not Provided |
metaTitle | [string] |
metaDescription | [string] |
metaKeywords | [string] |
sort | [number] Loading position. Used for interfaces |
module | [number] |
plugin | [number] |
Request Body
{"label"=>"Example Content Model", "name"=>"example_content_model", "type"=>"pageset"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"_meta":{"timestamp":"2021-08-26T20:36:22.015440677Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"6-fef3e0cafa-40wv9t","masterZUID":"6-fef3e0cafa-40wv9t","parentZUID":"0","description":null,"label":"Postman Content Model","metaTitle":null,"metaDescription":null,"metaKeywords":null,"type":"dataset","name":"postman_content_model","sort":363,"listed":false,"module":0,"plugin":0,"createdByUserZUID":"5-8e91ec8896-s938ks","updatedByUserZUID":"5-8e91ec8896-s938ks","createdAt":"2021-08-26T20:36:21.979805528Z","updatedAt":"2021-08-26T20:36:21.979811302Z"}}