URL
POST https://{api-url}/api/v2/tenants/{tenantId}/devices/{deviceId}/deviceWarranty
Sample URLs
https://{api-url}/api/v2/tenants/client_93/devices/DEV0001520157/deviceWarranty
Parameters
Both fields are mandatory:
Field | Data Type | Description |
---|---|---|
purchaseDate | String | Warranty purchase date |
warrantyExpireDate | String | Warranty expire date |
Note
Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).Status code
200 OK
Sample request
{
"purchaseDate": "2015-11-09 12:30:00 UTC",
"warrantyExpireDate": "2020-12-09 12:30:00 UTC"
}
Sample response
[{
"id": 7,
"purchaseDate": "2015-11-09 12:30:00 UTC",
"warrantyExpireDate": "2016-12-09 12:30:00 UTC",
"deviceId": "DEV0000011576"
}]