Documentation forSolarWinds Service Desk

Groups

Create a new group:

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

XML Example:

<group>

  <name>GROUP_NAME</name>

  <description>GROUP_DESC</description>

</group>

JSON Example:

{

  "group":{

    "name":"GROUP_NAME",

    "description":"GROUP_DESC",

  }

}

Show list of  groups:

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

Show a group:

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

Update a group:

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/groups/GROUP_ID.xml

XML Example:

<group>

  <name>GROUP_NAME</name>

  <description>GROUP_DESC</description>

</group>

JSON Example:

{

  "group":{

    "field_to_update":"content"

  }

}

Deleting a group:

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