Request to create a new template
name | data type | description |
---|---|---|
nodeId | number | Optional node ID to create template in a channel |
folderIds | array of string | IDs of folders, where the template shall be created (at least one folder has to be set) |
template | Template | Template to create |
Example
{ "nodeId" : 12345, "folderIds" : [ "...", "..." ], "template" : { "inheritedFrom" : "...", "masterNode" : "...", "id" : 12345, "globalId" : "...", "name" : "...", "description" : "...", "creator" : { "id" : 12345, "firstName" : "...", "lastName" : "...", "description" : "...", "email" : "...", "groups" : [ { }, { } ], "login" : "...", "password" : "..." }, "cdate" : 12345, "editor" : { "id" : 12345, "firstName" : "...", "lastName" : "...", "description" : "...", "email" : "...", "groups" : [ { }, { } ], "login" : "...", "password" : "..." }, "edate" : 12345, "locked" : true, "markupLanguage" : { "id" : 12345, "name" : "...", "extension" : "...", "contentType" : "...", "feature" : "...", "excludeFromPublishing" : true }, "inherited" : true, "folderId" : 12345, "masterId" : 12345, "path" : "...", "templateTags" : { "property1" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { }, "active" : true, "properties" : { "property1" : { }, "property2" : { } }, "type" : "CONTENTTAG" }, "property2" : { "mandatory" : true, "editableInPage" : true, "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { }, "active" : true, "properties" : { "property1" : { }, "property2" : { } }, "type" : "TEMPLATETAG" } }, "objectTags" : { "property1" : { "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { }, "active" : true, "properties" : { "property1" : { }, "property2" : { } }, "type" : "CONTENTTAG" }, "property2" : { "id" : 12345, "name" : "...", "constructId" : 12345, "construct" : { }, "active" : true, "properties" : { "property1" : { }, "property2" : { } }, "type" : "CONTENTTAG" } }, "source" : "...", "channelSetId" : 12345, "channelId" : 12345, "master" : true } }