POST api/DMS/1/0/UpdateDevice

Actualiza un dispositivo nuevo en el sistema.


Información del Request

Parametros de la URI

No posee parametros

Parametros del Body

Device
NombreDescripciónTipoInformación Adicional
deviceId

ID del dispositivo.

integer

N/A

statusId

ID del estado que tendrá el dispositivo.

integer

Required

serial

Serial del dispositivo.

string

Required

String length: inclusive between 0 and 50

assetCode

Número de activo del dispositivo.

string

String length: inclusive between 0 and 50

warehouseId

ID de la bodega en la que se encuentra el dispositivo.

integer

N/A

certificated

El dispositivo se encuentra certificado?

boolean

N/A

productId

ID del producto que identifica el dispositivo.

integer

Required

reportedBrand

Marca del dispositivo a reportar.

string

String length: inclusive between 0 and 150

reportedType

Tipo del dispositivo a reportar.

string

String length: inclusive between 0 and 150

reportedSerial

Serial del dispositivo a reportar.

string

String length: inclusive between 0 and 50

reportedSoftwareVersion

Versión da aplicación del dispositivo a reportar.

string

String length: inclusive between 0 and 150

unitCost

Costo unitario del dispositivo.

decimal number

N/A

warrantyDate

Fecha de expiración de la garantía del dispositivo.

date

N/A

mpos

El dispositivo es para MPOS?

boolean

N/A

typeId

ID del tipo de dispositivo.

integer

Required

Ejemplos de request:

application/json, text/json

Ejemplo:
{
  "deviceId": 1,
  "statusId": 2,
  "serial": "sample string 3",
  "assetCode": "sample string 4",
  "warehouseId": 5,
  "certificated": true,
  "productId": 7,
  "reportedBrand": "sample string 8",
  "reportedType": "sample string 9",
  "reportedSerial": "sample string 10",
  "reportedSoftwareVersion": "sample string 11",
  "unitCost": 12.0,
  "warrantyDate": "2026-04-05T07:51:16.5173686-05:00",
  "mpos": true,
  "typeId": 15
}

application/xml, text/xml

Ejemplo:
<Device xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KinPOS.API.Model.Global">
  <assetCode>sample string 4</assetCode>
  <certificated>true</certificated>
  <deviceId>1</deviceId>
  <mpos>true</mpos>
  <productId>7</productId>
  <reportedBrand>sample string 8</reportedBrand>
  <reportedSerial>sample string 10</reportedSerial>
  <reportedSoftwareVersion>sample string 11</reportedSoftwareVersion>
  <reportedType>sample string 9</reportedType>
  <serial>sample string 3</serial>
  <statusId>2</statusId>
  <typeId>15</typeId>
  <unitCost>12</unitCost>
  <warehouseId>5</warehouseId>
  <warrantyDate>2026-04-05T07:51:16.5173686-05:00</warrantyDate>
</Device>

Información del Response

Descripción de los parametros

SFE.Core.Layer.Models.FunctionResultOfSystem.Int64
NombreDescripciónTipoInformación Adicional
Result

integer

N/A

ResponseCode

string

N/A

TotalRecords

integer

N/A

Ejemplos de response:

application/json, text/json

Ejemplo:
{
  "Result": 1,
  "ResponseCode": "sample string 2",
  "TotalRecords": 3
}

application/xml, text/xml

Ejemplo:
<FunctionResultOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFE.Core.Layer.Models">
  <ResponseCode>sample string 2</ResponseCode>
  <Result>1</Result>
  <TotalRecords>3</TotalRecords>
</FunctionResultOflong>