POST api/dispositivo/agregar

Request Information

URI Parameters

None.

Body Parameters

DispositivoDTO
NameDescriptionTypeAdditional information
iddispositivo

integer

None.

nombre

string

None.

tipo_control

string

None.

estado_mantenimiento

integer

None.

direccion_mac

string

None.

Modo_Operacion

integer

None.

GUI_ORIENTATION_SCREEN

boolean

None.

GUI_ORIENTATION_CAMERA

boolean

None.

HAS_FR_ENABLED

boolean

None.

HAS_PERIPHERALS_ENABLED

boolean

None.

HAS_QR_ENABLED

boolean

None.

HAS_TEMPERATURE_ENABLED

boolean

None.

HOUR_FOR_COLD_DATA_UPLOAD

integer

None.

REBOOT_TIME_DOWNLOADJSON

integer

None.

TEMPERATURE_OFFSET

decimal number

None.

TIMEZONE

string

None.

HAS_USER_FR_ENABLED

boolean

None.

HAS_USER_QR_ENABLED

boolean

None.

DEVICE_REBOOT_HOUR

integer

None.

SERVICIO

string

None.

COMEDOR

string

None.

estado

integer

None.

fecha_ultima_peticion

date

None.

fecha_registro

date

None.

usuario_registro

string

None.

eliminado

integer

None.

idcomedor

integer

None.

cantidad_personas

integer

None.

modelo

integer

None.

fecha_actualiza

date

None.

usuario_actualiza

string

None.

CODCECO

string

None.

CODCOMEDOR

string

None.

CLIENTE

string

None.

TEMPERATURA_MAX

string

None.

codcia

string

String length: inclusive between 0 and 11

Request Formats

application/json, text/json

Sample:
{
  "iddispositivo": 1,
  "nombre": "sample string 2",
  "tipo_control": "sample string 3",
  "estado_mantenimiento": 4,
  "direccion_mac": "sample string 5",
  "Modo_Operacion": 6,
  "GUI_ORIENTATION_SCREEN": true,
  "GUI_ORIENTATION_CAMERA": true,
  "HAS_FR_ENABLED": true,
  "HAS_PERIPHERALS_ENABLED": true,
  "HAS_QR_ENABLED": true,
  "HAS_TEMPERATURE_ENABLED": true,
  "HOUR_FOR_COLD_DATA_UPLOAD": 13,
  "REBOOT_TIME_DOWNLOADJSON": 14,
  "TEMPERATURE_OFFSET": 15.0,
  "TIMEZONE": "sample string 16",
  "HAS_USER_FR_ENABLED": true,
  "HAS_USER_QR_ENABLED": true,
  "DEVICE_REBOOT_HOUR": 1,
  "SERVICIO": "sample string 19",
  "COMEDOR": "sample string 20",
  "estado": 21,
  "fecha_ultima_peticion": "2026-01-31T11:13:05.6685041-06:00",
  "fecha_registro": "2026-01-31T11:13:05.6685041-06:00",
  "usuario_registro": "sample string 22",
  "eliminado": 23,
  "idcomedor": 24,
  "cantidad_personas": 1,
  "modelo": 25,
  "fecha_actualiza": "2026-01-31T11:13:05.6685041-06:00",
  "usuario_actualiza": "sample string 26",
  "CODCECO": "sample string 27",
  "CODCOMEDOR": "sample string 28",
  "CLIENTE": "sample string 29",
  "TEMPERATURA_MAX": "sample string 30",
  "codcia": "sample string 31"
}

application/xml, text/xml

Sample:
<DispositivoDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Entidades">
  <CLIENTE>sample string 29</CLIENTE>
  <CODCECO>sample string 27</CODCECO>
  <CODCOMEDOR>sample string 28</CODCOMEDOR>
  <COMEDOR>sample string 20</COMEDOR>
  <DEVICE_REBOOT_HOUR>1</DEVICE_REBOOT_HOUR>
  <GUI_ORIENTATION_CAMERA>true</GUI_ORIENTATION_CAMERA>
  <GUI_ORIENTATION_SCREEN>true</GUI_ORIENTATION_SCREEN>
  <HAS_FR_ENABLED>true</HAS_FR_ENABLED>
  <HAS_PERIPHERALS_ENABLED>true</HAS_PERIPHERALS_ENABLED>
  <HAS_QR_ENABLED>true</HAS_QR_ENABLED>
  <HAS_TEMPERATURE_ENABLED>true</HAS_TEMPERATURE_ENABLED>
  <HAS_USER_FR_ENABLED>true</HAS_USER_FR_ENABLED>
  <HAS_USER_QR_ENABLED>true</HAS_USER_QR_ENABLED>
  <HOUR_FOR_COLD_DATA_UPLOAD>13</HOUR_FOR_COLD_DATA_UPLOAD>
  <Modo_Operacion>6</Modo_Operacion>
  <REBOOT_TIME_DOWNLOADJSON>14</REBOOT_TIME_DOWNLOADJSON>
  <SERVICIO>sample string 19</SERVICIO>
  <TEMPERATURA_MAX>sample string 30</TEMPERATURA_MAX>
  <TEMPERATURE_OFFSET>15</TEMPERATURE_OFFSET>
  <TIMEZONE>sample string 16</TIMEZONE>
  <cantidad_personas>1</cantidad_personas>
  <codcia>sample string 31</codcia>
  <direccion_mac>sample string 5</direccion_mac>
  <eliminado>23</eliminado>
  <estado>21</estado>
  <estado_mantenimiento>4</estado_mantenimiento>
  <fecha_actualiza>2026-01-31T11:13:05.6685041-06:00</fecha_actualiza>
  <fecha_registro>2026-01-31T11:13:05.6685041-06:00</fecha_registro>
  <fecha_ultima_peticion>2026-01-31T11:13:05.6685041-06:00</fecha_ultima_peticion>
  <idcomedor>24</idcomedor>
  <iddispositivo>1</iddispositivo>
  <modelo>25</modelo>
  <nombre>sample string 2</nombre>
  <tipo_control>sample string 3</tipo_control>
  <usuario_actualiza>sample string 26</usuario_actualiza>
  <usuario_registro>sample string 22</usuario_registro>
</DispositivoDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfString
NameDescriptionTypeAdditional information
status_code

HttpStatusCode

None.

message

string

None.

error

Exception

None.

result

string

None.

data

string

None.

resultado

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status_code": 100,
  "message": "sample string 1",
  "error": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "result": "sample string 2",
  "data": "sample string 3",
  "resultado": "sample string 4"
}

application/xml, text/xml

Sample:
<ResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Models">
  <data>sample string 3</data>
  <error xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </error>
  <message>sample string 1</message>
  <result>sample string 2</result>
  <resultado>sample string 4</resultado>
  <status_code>Continue</status_code>
</ResponseOfstring>