POST Api/DeviceExtendedData
This method allows a device provider to transfer device specific extended data. Examples include low battery alerts, steps for the day, etc.
Request Information
URI Parameters
None.
Body Parameters
Any extended data pertaining to a device. Format to be determined.
ObjectNone.
Request Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
A TPCResponse object.
TPCResponseName | Description | Type | Additional information |
---|---|---|---|
result | string |
None. |
|
error_code | integer |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "result": "sample string 1", "error_code": 1, "message": "sample string 2" }
application/xml, text/xml
Sample:
<TPCResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPC.API.Models"> <error_code>1</error_code> <message>sample string 2</message> <result>sample string 1</result> </TPCResponse>