POST api/dispositivo/mantenimiento

Request Information

URI Parameters

None.

Body Parameters

DispositivoMac
NameDescriptionTypeAdditional information
Mac

string

None.

EstadoDispositivo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Mac": "sample string 1",
  "EstadoDispositivo": 2
}

application/xml, text/xml

Sample:
<DispositivoMac xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Models">
  <EstadoDispositivo>2</EstadoDispositivo>
  <Mac>sample string 1</Mac>
</DispositivoMac>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfDataDispositivo
NameDescriptionTypeAdditional information
status_code

HttpStatusCode

None.

message

string

None.

error

Exception

None.

result

DataDispositivo

None.

data

DataDispositivo

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": {
    "ModoOperacion": 1,
    "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": 8,
    "REBOOT_TIME_DOWNLOAD_DATAJSON": 9,
    "TEMPERATURE_OFFSET": 10.1,
    "TIMEZONE": "sample string 11",
    "HAS_USER_FR_ENABLED": true,
    "HAS_USER_QR_ENABLED": true,
    "DEVICE_REBOOT_HOUR": 1,
    "IdDispositivo": 14,
    "Token": "sample string 15",
    "Url": "sample string 16",
    "Servicio": "sample string 17",
    "Comedor": "sample string 18",
    "CodCeco": "sample string 19",
    "Cliente": "sample string 20"
  },
  "data": {
    "ModoOperacion": 1,
    "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": 8,
    "REBOOT_TIME_DOWNLOAD_DATAJSON": 9,
    "TEMPERATURE_OFFSET": 10.1,
    "TIMEZONE": "sample string 11",
    "HAS_USER_FR_ENABLED": true,
    "HAS_USER_QR_ENABLED": true,
    "DEVICE_REBOOT_HOUR": 1,
    "IdDispositivo": 14,
    "Token": "sample string 15",
    "Url": "sample string 16",
    "Servicio": "sample string 17",
    "Comedor": "sample string 18",
    "CodCeco": "sample string 19",
    "Cliente": "sample string 20"
  },
  "resultado": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfDataDispositivoqN4Avyrv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Models">
  <data>
    <Cliente>sample string 20</Cliente>
    <CodCeco>sample string 19</CodCeco>
    <Comedor>sample string 18</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>8</HOUR_FOR_COLD_DATA_UPLOAD>
    <IdDispositivo>14</IdDispositivo>
    <ModoOperacion>1</ModoOperacion>
    <REBOOT_TIME_DOWNLOAD_DATAJSON>9</REBOOT_TIME_DOWNLOAD_DATAJSON>
    <Servicio>sample string 17</Servicio>
    <TEMPERATURE_OFFSET>10.1</TEMPERATURE_OFFSET>
    <TIMEZONE>sample string 11</TIMEZONE>
    <Token>sample string 15</Token>
    <Url>sample string 16</Url>
  </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>
    <Cliente>sample string 20</Cliente>
    <CodCeco>sample string 19</CodCeco>
    <Comedor>sample string 18</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>8</HOUR_FOR_COLD_DATA_UPLOAD>
    <IdDispositivo>14</IdDispositivo>
    <ModoOperacion>1</ModoOperacion>
    <REBOOT_TIME_DOWNLOAD_DATAJSON>9</REBOOT_TIME_DOWNLOAD_DATAJSON>
    <Servicio>sample string 17</Servicio>
    <TEMPERATURE_OFFSET>10.1</TEMPERATURE_OFFSET>
    <TIMEZONE>sample string 11</TIMEZONE>
    <Token>sample string 15</Token>
    <Url>sample string 16</Url>
  </result>
  <resultado>sample string 2</resultado>
  <status_code>Continue</status_code>
</ResponseOfDataDispositivoqN4Avyrv>