Endpoint
/api/v2/tenants/{tenantId}/devices/{deviceId}/deviceWarranty
Gets device warranty details.
Path Parameters
tenantIdstring
deviceIdstring
Responses
OK
deviceIdstring
idinteger
purchaseDatestring
Warranty purchase date
warrantyExpireDatestring
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
tenantIdstring
deviceIdstring
deviceIdstring
idinteger
purchaseDatestring
Warranty purchase date
warrantyExpireDatestring
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"
}
]