Documentation forSolarWinds Service Desk

Roles:

Getting a list of all roles:

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

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

Getting role details (using role ID number):

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

Create a new role:

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

Required fields:

<name>

XML Example:

<role>

  <name>Role name</name>

  <portal>true</portal>

</role>

JSON Example:

{

    "role": {

    "name": "Role name",

        "portal": true

    }

}