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
.json
suffix or?format=json
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
POST /json/reply/MapReflectionTemplate HTTP/1.1
Host: localhost
Content-Type: application/json
Content-Length: length
{"wType":"MapReflectionTemplate","reflectionID":0,"templateID":0,"command":{"wType":"ReflectionCommandBase"},"wac":"String"}
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/json" -X POST -d @filename.json https://api.wit-datacenter.com/WAC123456789012/Reflection/23/Map/5
Remark
@filename.json
contain your request parameters serialized in JSON as described in Post Data sample bottom
Response
Returned Entity
True
if mapping was successfull for all ReflectionBase else False
JSON Sample
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length false