Cleverciti RestAPI Version 2.0

<back to all web services

TemplateNewArea

The following routes are available for this service:
POST/ccs/city/view/template/newarea
TemplateNewArea Parameters:
NameParameterData TypeRequiredDescription
useridbodystringYesUserID that access the Service
groupidbodystringYesGroupID Accessgroup for this template
axbodydoubleYesViewarea Longitude x1
aybodydoubleYesViewarea Latitude y1
bxbodydoubleYesViewarea Longitude x2
bybodydoubleYesViewarea Latitude y2
cxbodydoubleYesViewarea Longitude x3
cybodydoubleYesViewarea Latitude y3
dxbodydoubleYesViewarea Longitude x4
dybodydoubleYesViewarea Latitude y4
namebodystringYesName of the Template
commentbodystringYesComment of the Template
viewidsbodystringYeslist of query views
detailbodyintYesdetail level of data
livecockpitbodystringYesurl of the live cockpit
staticcockpitbodystringYesurl of the statistic cockpit
restcallbodystringYesurl of the query rest call

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ccs/city/view/template/newarea HTTP/1.1 
Host: 188.138.100.94 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"userid":"String","groupid":"String","ax":0,"ay":0,"bx":0,"by":0,"cx":0,"cy":0,"dx":0,"dy":0,"name":"String","comment":"String","viewids":"String","detail":0,"livecockpit":"String","staticcockpit":"String","restcall":"String"}