POST api/Device/RegisterDeviceCode
Documentation for 'RegisterDeviceCode'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| request | Documentation for 'request'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"activate_code": "sample string 1",
"device_code": "sample string 2",
"device_model": "sample string 3",
"identifier_type": 64,
"device_identifier": "sample string 5",
"is_success": true,
"error_message": "sample string 7",
"exception_name": "sample string 8",
"error_code": 9
}
application/xml, text/xml
Sample:
<RegisterDeviceCodeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentApi.Client.Rest.Device.Entities"> <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">9</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 7</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 8</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> <activate_code>sample string 1</activate_code> <device_code>sample string 2</device_code> <device_identifier>sample string 5</device_identifier> <device_model>sample string 3</device_model> <identifier_type>64</identifier_type> </RegisterDeviceCodeRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{
"is_success": true,
"error_message": "sample string 2",
"exception_name": "sample string 3",
"error_code": 4
}
application/xml, text/xml
Sample:
<Void xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentApi.Client.Rest.Device.Entities"> <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">4</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 2</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 3</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> </Void>