Read or list widget template objects. (See API authentication for general information how to use these APIs.)
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
id |
String |
No |
Identifier of a widget template object . |
|
siteGroupId |
String |
No |
Identifier of a site group. |
|
fullHistory |
Boolean |
No |
If false, do not include the fields |
Either 'id' or 'siteGroupId' must be specified, but not both. If 'siteGroupId' is specified, all template objects belonging to this site group are retrieved.
Response
The response object has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
templates |
Array of Object |
Array of widget template objects . |
If 'id' was specified in the request, this array contains at most one element.
Example
$ cx.py /widget/template '{ "id": "0c91da2fc94b4c5729deb9cdb0e6fd661cf6c9e1" }'
{
"templates": [
{
"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": []
}
]
}