Documentation forSolarWinds Service Desk

Catalog Items

Getting a list of all catalog items:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/vnd.samanage.v2.1+xml' -X GET

https://api.samanage.com/catalog_items.xml

Getting catalog item details (using catalog item ID number):

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

Create a new catalog item:

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/catalog_items.xml

XML Example:

<catalog_item>

  <name>Catalog item created via API</name>

  <description>bla bla</description>

  <category>

    <name>Facilities</name>

  </category>

  <subcategory>

    <name>Equipment</name>

  </subcategory>

  <site>

    <name>Site A</name>

  </site>

  <department>

    <name>Dept A</name>

  </department>

  <price>100</price>

  <currency>USD</currency>

  <show_price>true</show_price>

</catalog_item>

JSON Example:

{

  "catalog_item":{

    "name": "Catalog item created via API",

    "description": "bla bla",

    "category": {

      "name": "Facilities"

    },

    "subcategory": {

      "name": "Equipment"

    },

    "site": {

      "name": "Site A"

    },

    "department": {

      "name": "Dept A"

    },

    "price": 100,

    "currency": "USD",

    "show_price": true

  }

}