POST DISPOSITIVOS/REGISTRAR_DISPOSITIVO
Método que permite registrar un dispositivo.
Request Information
URI Parameters
None.
Body Parameters
RegisterDeviceVM| Name | Description | Type | Additional information |
|---|---|---|---|
| Key | string |
None. |
|
| Plataforma | integer |
None. |
|
| Activo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Key": "sample string 1",
"Plataforma": 2,
"Activo": 3
}
application/xml, text/xml
Sample:
<RegisterDeviceVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Devices.Request"> <Activo>3</Activo> <Key>sample string 1</Key> <Plataforma>2</Plataforma> </RegisterDeviceVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserResponseVM| Name | Description | Type | Additional information |
|---|---|---|---|
| codigo | string |
None. |
|
| desc_codigo | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"codigo": "sample string 1",
"desc_codigo": "sample string 2"
}
application/xml, text/xml
Sample:
<UserResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Users.Response"> <codigo>sample string 1</codigo> <desc_codigo>sample string 2</desc_codigo> </UserResponseVM>