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
.csv
suffix or?format=csv
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
POST /csv/reply/MapReflectionTemplate HTTP/1.1
Host: localhost
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'MapReflectionTemplate' using the custom 'csv' filter}Impossible de créer une instance de WIT.DataCenter.DTOs.ReflectionCommandBaseDto, car il s'agit d'une classe abstraite.
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/csv" -X POST -d @filename.csv https://api.wit-datacenter.com/WAC123456789012/Reflection/23/Map/5
Remark
@filename.csv
contain your request parameters serialized in CSV as described in Post Data sample bottom
Response
Returned Entity
True
if mapping was successfull for all ReflectionBase else False
CSV Sample
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length False