Endpoint
/api/v2/tenants/{tenantId}/devices/{deviceId}/deviceWarranty

Gets device warranty details.

Path Parameters
tenantId
string

deviceId
string

Responses

OK

deviceId
string

id
integer

purchaseDate
string

Warranty purchase date

warrantyExpireDate
string

Warranty expire date

{
  "deviceId": "fb3d81e9-cb01-4178-a7c7-7336ddd3c756",
  "id": 1,
  "purchaseDate": "2015-11-09T18:00:00+0000",
  "warrantyExpireDate": "2020-12-09T18:00:00+0000"
}
Endpoint
/api/v2/tenants/{tenantId}/devices/{deviceId}/deviceWarranty

Creates a warranty for a device.

Path Parameters
tenantId
string

deviceId
string

deviceId
string

id
integer

purchaseDate
string

Warranty purchase date

warrantyExpireDate
string

Warranty expire date

{
  "purchaseDate": "2015-11-09 12:30:00 UTC",
  "warrantyExpireDate": "2020-12-09 12:30:00 UTC"
}

Responses

OK

[
  {
    "deviceId": "DEV0000011576",
    "id": 7,
    "purchaseDate": "2015-11-09 12:30:00 UTC",
    "warrantyExpireDate": "2016-12-09 12:30:00 UTC"
  }
]