POST api/dispositivo/registrarasistenciaunica

Request Information

URI Parameters

None.

Body Parameters

Asistencia
NameDescriptionTypeAdditional information
id

integer

None.

idcolaborador

integer

None.

idsede

integer

None.

iddispositivosede

integer

None.

fecha_registro

date

None.

fecha_asistencia

date

None.

temperatura

decimal number

None.

mascarilla

boolean

None.

acceso

boolean

None.

tipo_acceso

integer

None.

wface

integer

None.

temp_crudo

decimal number

None.

ind_impresion

boolean

None.

ind_qr_generico

integer

None.

qr_hash

string

None.

servicio

string

None.

ind_masivo

integer

None.

num_servicios

integer

None.

num_dietas

integer

None.

ind_dieta

integer

None.

codcia

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "idcolaborador": 2,
  "idsede": 3,
  "iddispositivosede": 4,
  "fecha_registro": "2026-02-01T04:08:08.1518411-06:00",
  "fecha_asistencia": "2026-02-01T04:08:08.1518411-06:00",
  "temperatura": 7.0,
  "mascarilla": true,
  "acceso": true,
  "tipo_acceso": 10,
  "wface": 11,
  "temp_crudo": 12.0,
  "ind_impresion": true,
  "ind_qr_generico": 14,
  "qr_hash": "sample string 15",
  "servicio": "sample string 16",
  "ind_masivo": 17,
  "num_servicios": 18,
  "num_dietas": 19,
  "ind_dieta": 20,
  "codcia": "sample string 21"
}

application/xml, text/xml

Sample:
<Asistencia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Models">
  <acceso>true</acceso>
  <codcia>sample string 21</codcia>
  <fecha_asistencia>2026-02-01T04:08:08.1518411-06:00</fecha_asistencia>
  <fecha_registro>2026-02-01T04:08:08.1518411-06:00</fecha_registro>
  <id>1</id>
  <idcolaborador>2</idcolaborador>
  <iddispositivosede>4</iddispositivosede>
  <idsede>3</idsede>
  <ind_dieta>20</ind_dieta>
  <ind_impresion>true</ind_impresion>
  <ind_masivo>17</ind_masivo>
  <ind_qr_generico>14</ind_qr_generico>
  <mascarilla>true</mascarilla>
  <num_dietas>19</num_dietas>
  <num_servicios>18</num_servicios>
  <qr_hash>sample string 15</qr_hash>
  <servicio>sample string 16</servicio>
  <temp_crudo>12</temp_crudo>
  <temperatura>7</temperatura>
  <tipo_acceso>10</tipo_acceso>
  <wface>11</wface>
</Asistencia>

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>