CommandReflectionUnitOfProd Documentation
CommandReflectionUnitOfProd
Draft documentation version
Documentation is partial and not validated !
Description
Remark
ReflectionUnitOfProd is a specific Reflection used to pilot power production
| Version | V1 |
|---|---|
| Require User context | |
| Authorization | |
| Errors |
Request
Route
Parameters
| Parameter | Required | Sample | Description |
|---|---|---|---|
| Command | UnitOfProd command as ReflectionCommandUnitOfProd | ||
| ReflectionID | 6 | ID of ReflectionBase to command | |
| WAC | WAC123456789012 | Code of BusinessAccount | |
| ExecutionDate | 2014-09-15T13:59:20.0000000Z | Execution planned date. If empty, command is executed on next LTU call | |
| Tracking | Main | Ack and execution command tracking level as TrackingEnum |
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.xmlsuffix or?format=xml - To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
POST /xml/reply/CommandReflectionUnitOfProd HTTP/1.1
Host: localhost
Content-Type: application/xml
Content-Length: length
<CommandReflectionUnitOfProd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIT.DataCenter.DTOs.Request">
<WAC>String</WAC>
<ExecutionDate>0001-01-01T00:00:00</ExecutionDate>
<ReflectionID>0</ReflectionID>
<Tracking>None</Tracking>
<Command xmlns:d2p1="https://api.wit-datacenter.com/">
<d2p1:Sequence xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfdateTimeunsignedByte>
<d3p1:Key>0001-01-01T00:00:00</d3p1:Key>
<d3p1:Value>0</d3p1:Value>
</d3p1:KeyValueOfdateTimeunsignedByte>
</d2p1:Sequence>
</Command>
</CommandReflectionUnitOfProd>
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/xml" -X POST -d @filename.xml https://api.wit-datacenter.com/WAC123456789012/Reflection/6/CommandUnitOfProd
Remark
@filename.xml contain your request parameters serialized in XML as described in Post Data sample bottom
Response
Returned Entity
Command as ReflectionDataUnitOfProdXML Sample
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReflectionDataUnitOfProd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://api.wit-datacenter.com/">
<ID>0</ID>
<Name>String</Name>
<Picture>00000000-0000-0000-0000-000000000000</Picture>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<ExecutionDate>0001-01-01T00:00:00</ExecutionDate>
<Phase>Received</Phase>
<SendDate>0001-01-01T00:00:00</SendDate>
<State>0</State>
<Coupling>false</Coupling>
<InstantPower>0</InstantPower>
<Sequence xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfdateTimeunsignedByte>
<d2p1:Key>0001-01-01T00:00:00</d2p1:Key>
<d2p1:Value>0</d2p1:Value>
</d2p1:KeyValueOfdateTimeunsignedByte>
</Sequence>
<SequenceDate>0001-01-01T00:00:00</SequenceDate>
<StateIndex>0</StateIndex>
<StateIndexDate>0001-01-01T00:00:00</StateIndexDate>
</ReflectionDataUnitOfProd>
SDK DotNet
SDK Android
SDK IOS