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:

FieldData TypeDescription
purchaseDateStringWarranty purchase date
warrantyExpireDateStringWarranty expire date

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"
}]