Documentation forSolarWinds Service Desk

Warranties

Getting a list of all warranties:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/vnd.samanage.v2.1+xml' -X GET https://api.samanage.com/hardwares/HARDWARE_ID/warranties.xml

Create a new warranty order:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -d 'INPUT_XML' -H 'Accept: application/xml' -H 'Content-Type:text/xml' -X POST https://api.samanage.com/hardwares/HARDWARE_ID/warranties.xml

Optional fields:

<service>, <provider>, <start_date>, <end_date>, <status>, <hp_product_number>

XML Example (for creation):

<warranty>

  <service>Warranty</service>

  <provider>Warranty Provider</provider>

  <start_date>Dec 11, 2016</start_date>

  <end_date>Dec 11, 2019</end_date>

  <status>Active</status>

  <hp_product_number>A!H&@21213</hp_product_number>

</warranty>

JSON Example

{

  "warranty": {

    "service": "Warranty",

    "provider": "Warranty Provider",

    "start_date": "Dec 11, 2016",

    "end_date": "Dec 11, 2019",

    "status": "Active",

    "hp_product_number": "A!H&@21213"

  }

}

Updating a warranty:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -d 'INPUT_XML' -H 'Accept: application/xml' -H 'Content-Type:text/xml' -X PUT https://api.samanage.com/hardwares/HARDWARE_ID/warranties/WARRANTY_ID.xml

Optional fields:

<service>, <provider>, <start_date>, <end_date>, <status>, <hp_product_number>

Deleting a warranty:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/vnd.samanage.v2.1+xml' -X DELETE https://api.samanage.com/hardwares/HARDWARE_ID/warranties/WARRANTY_ID.xml