Create a content widget style configuration object. (See API authentication for general information how to use these APIs.)
Request
The request object is the style 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 style 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/style/create '{ "siteGroupId": "9222300742653756873", "description": "My first widget style", "settings": { "type": "basic", "css": ".item { float: left; }" } }'
{
"siteGroupId": "9222300742653756873",
"id": "28bcf3aeb4d23db789cf6970473524ae2e98c3c2",
"description": "My first widget style",
"lastUpdatedBy": "ivar.rummelhoff@cxense.com",
"lastUpdatedAt": "2014-10-15T15:04:42.032Z",
"settings": {
"type": "basic",
"css": ".item { float: left; }"
},
"history": []
}