Create a content widget template object. (See API authentication for general information how to use these APIs.)
Request
The request object is the template object you want to create. Observe that the field 'siteGroupId' is mandatory in create requests, whereas 'id' as not allowed (as it is assigned by the system).
Response
The response is the template object that has been created. In other words, it is similar to the request object, except that the fields 'id', 'lastUpdatedBy' and 'lastUpdatedAt' have been set.
Example
$ cx.py /widget/template/create '{ "siteGroupId": "9222300742653756873", "description": "My first widget template", "settings": { "type": "basic", "html": "<h1>Nothing here yet</h1>" } }'
{
"siteGroupId": "9222300742653756873",
"id": "0c91da2fc94b4c5729deb9cdb0e6fd661cf6c9e1",
"description": "My first widget template",
"lastUpdatedBy": "ivar.rummelhoff@cxense.com",
"lastUpdatedAt": "2014-10-15T15:00:12.154Z",
"settings": {
"type": "basic",
"html": "<h1>Nothing here yet</h1>"
},
"history": []
}