SearchDatas
Draft documentation version
Documentation is partial and not validated !
Search
Data
Route
Parameters
Parameter |
Required |
Sample |
Description |
WAC |
|
WAC123456789012
|
Code of BusinessAccount
|
Skip |
|
0
|
Number of Entities to skip. Parameter allow paging from your App
|
Take |
|
10
|
Number of Entities to Return
|
ClassIDs |
|
1,2,3
|
Array of FluxClass ID. Filter Entities with Class
|
FluxIDs |
|
1,2,3
|
Array of Flux ID. Filter Datas contained in Flux
|
FluxLevel |
|
Raw
|
Flux level as FluxLevelEnum. Filter Datas contained in Flux with Level
|
InfrastructureIDs |
|
1,2,3
|
Array of InfrastructureBase ID. Filter Entities localized on Site, Building or Zone
If you want to include Entities not localized on Infrastucture pass value 0 in array
|
LtuIDs |
|
1,2,3
|
Array of LTU ID. Filter Entities connected by LTU
|
Name |
|
abc
|
Name. Filter Entities containing Name
|
Orders |
|
|
Return Datas ordered by DataRequestOrder array
|
UpdateDate |
|
2014-09-15T13:59:20.0000000Z
|
Last update Date. Return Entities with changed MetaData or Datas
|
WumTypeIDs |
|
1,2,3
|
Array of WUMType ID. Filter Entities referencing WUMType
|
WumUnitIDs |
|
1,2,3
|
Array of WUMUnit ID. Filter Entities referencing WUMUnit
|
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.json
suffix or ?format=json
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
Skip=0&Take=10&ClassIDs=1,2,3&FluxIDs=1,2,3&FluxLevel=Raw&InfrastructureIDs=1,2,3&LtuIDs=1,2,3&Name=abc&Orders=&UpdateDate=2014-09-15T13:59:20.0000000Z&WumTypeIDs=1,2,3&WumUnitIDs=1,2,3&
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/json" https://api.wit-datacenter.com/WAC123456789012/Data?FluxLevel=Raw&FluxIDs=1%2c2%2c3&Orders=&Name=abc&ClassIDs=1%2c2%2c3&InfrastructureIDs=1%2c2%2c3&LtuIDs=1%2c2%2c3&WumUnitIDs=1%2c2%2c3&WumTypeIDs=1%2c2%2c3&UpdateDate=2014-09-15T13%3a59%3a20.0000000Z&Take=10&Skip=0
Returned Entity
DataContainer
JSON Sample
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"wType":"DataContainer","count":0,"datas":[{"wType":"Data","firstDataDate":"0001-01-01T00:00:00.0000000Z","lastDataDate":"0001-01-01T00:00:00.0000000Z","description":"String","label":"String","fluxID":0,"wum":{"wType":"WUM","wumUnitItemID":0,"wumFunctionID":0,"wumMaterialID":0,"wumTypeID":0},"id":0,"picture":"00000000000000000000000000000000","name":"String"}]}