Create View

POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/web/views

Note: When models are created they automatically generate a linked view. Therefore, model views can not be generated with this endpoint.

namedescription
code[string] Required. Mixed string of html, parsley, inline css, js etc.
filename[string] Required. Unique. No spaces or special chars allowed.
type[string] Required. snippet, ajax-json, ajax-html, 404

Request Body

{"code"=>"here is some code", "fileName"=>"Test View 5", "type"=>"templateset"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"_meta":{"timestamp":"2021-08-25T19:52:58.972888217Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"11-d88bf2b7a6-lf0x03","status":"live","contentModelZUID":null,"contentModelType":null,"code":"here is some code","type":"templateset","fileName":"Test View 8","customZNode":0,"template":1,"lastEditedID":21478033,"module":0,"plugin":0,"version":1,"createdAt":"2021-08-25T19:52:58.967783332Z","updatedAt":"2021-08-25T19:52:58.96779045Z"}}