MapReflectionTemplate Documentation
MapReflectionTemplate
Draft documentation version
Documentation is partial and not validated !
Description
Remark
Existing Mapping between Reflection and Template is replaced by new one
Version | Alpha |
---|---|
Require User context | |
Authorization | |
Errors |
Request
Route
Parameters
Parameter | Required | Sample | Description |
---|---|---|---|
ReflectionID | 23 | ID of ReflectionBase | |
TemplateID | 5 | ID of ReflectionTemplate | |
WAC | WAC123456789012 | Code of BusinessAccount | |
Command | Command must inherit from ReflectionCommandBase |
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.xml
suffix or?format=xml
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
POST /xml/reply/MapReflectionTemplate HTTP/1.1
Host: localhost
Content-Type: application/xml
Content-Length: length
<MapReflectionTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIT.DataCenter.DTOs.Request">
<WAC>String</WAC>
<Command xmlns:d2p1="https://api.wit-datacenter.com/" />
<ReflectionID>0</ReflectionID>
<TemplateID>0</TemplateID>
</MapReflectionTemplate>
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/23/Map/5
Remark
@filename.xml
contain your request parameters serialized in XML as described in Post Data sample bottom
Response
Returned Entity
True
if mapping was successfull for all ReflectionBase else False
XML Sample
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">false</boolean>