UpdateReflection Documentation
UpdateReflection
Draft documentation version
Documentation is partial and not validated !
Description
Remark
- You can override Name defined in LocalTechnicalUnit (*): just set Name parameter. In this case Name is set in WDC Plateform only (not in LocalTechnicalUnit)
- you can reset Name to default one defined in LocalTechnicalUnit (*): just pass a Null or Empty value on Name parameter
Version | V1 |
---|---|
Require User context | |
Authorization | |
Errors |
Request
Route
Parameters
Parameter | Required | Sample | Description |
---|---|---|---|
ReflectionID | 23 | ID of ReflectionBase | |
WAC | WAC123456789012 | Code of BusinessAccount | |
Description | My Reflection description | Full description | |
Name | My Reflection name | Name (view remarks above) |
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/UpdateReflection HTTP/1.1
Host: localhost
Content-Type: application/xml
Content-Length: length
<UpdateReflection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIT.DataCenter.DTOs.Request">
<WAC>String</WAC>
<Description>String</Description>
<Name>String</Name>
<ReflectionID>0</ReflectionID>
</UpdateReflection>
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/xml" -X PUT -d @filename.xml https://api.wit-datacenter.com/WAC123456789012/Reflection/23
Remark
@filename.xml
contain your request parameters serialized in XML as described in Post Data sample bottom
Response
Returned Entity
Updated ReflectionBaseXML Sample
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ReflectionBase 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> <CanCommand>false</CanCommand> <CanEvent>false</CanEvent> <Class>Default</Class> <CreationDate>0001-01-01T00:00:00</CreationDate> <DatasCount>0</DatasCount> <Description>String</Description> <ExchangeDate>0001-01-01T00:00:00</ExchangeDate> <InfrastructureID>0</InfrastructureID> <LTUID>0</LTUID> <LastData i:nil="true" /> <NextCall>0001-01-01T00:00:00</NextCall> <Size>0</Size> <Status>Disabled</Status> <UpdateDate>0001-01-01T00:00:00</UpdateDate> </ReflectionBase>