Updates a datonis_role with given parameters

Params

Param name Description
datonis_role
required

Object containing information about the datonis_role to be updated


Value: Must be a Hash
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean

Examples

Request - containing parameters to be modified
  curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" -d '{"datonis_role":{"abilities":[5],"name":"Write Only"}}}' https://api.datonis.io/api/v3/datonis_roles/517d8e4695

Response (returns details of the datonis_role updated)
{
  "datonis_role": {
    "abilities": [
      5
    ],
    "account_admin": false,
    "datonis_role_key": "517d8e4695",
    "name": "Write Only",
    "permissions": [
      {
        "class": "datonis_role",
        "operation": "read",
        "seqno": 1
      },
      {
        "class": "datonis_role",
        "operation": "create",
        "seqno": 2
      },
      {
        "class": "datonis_role",
        "operation": "update",
        "seqno": 3
      },
      {
        "class": "datonis_role",
        "operation": "delete",
        "seqno": 4
      },
      {
        "class": "datonis_role",
        "operation": "all",
        "seqno": 5
      }
    ]
  }
}