Documentation forSolarWinds Service Desk

Categories

Create a new category:

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

XML Example:

<category>

  <name>CATEGORY_NAME</name>

  <parent>

    <name>PARENT_CATEGORY_NAME</name>

  </parent>

</category>

JSON Example:

{

  "category": {

    "name": "CATEGORY_NAME",

    "parent": {

      "name": "PARENT_CATEGORY_NAME"

    }

  }

}

Show list of categories:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/xml' -H 'Content-Type:text/xml' -X GET https://api.samanage.com/categories.xml

Show a category:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/xml' -H 'Content-Type:text/xml' -X GET https://api.samanage.com/categories/CATEGORY_ID.xml

Update a category:

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/categories/CATEGORY_ID.xml

Delete a category:

curl -H "X-Samanage-Authorization: Bearer TOKEN" -H 'Accept: application/xml' -H 'Content-Type:text/xml' -X DELETE https://api.samanage.com/categories/CATEGORY_ID.xml