Updates a role with given parameters

Params

Param name Description
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean
is_oem
optional

Update role in child account by oem user if is_oem flag is true.


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 '{"role":{"abilities":[5],"name":"Write Only"}}}' https://api.datonis.io/api/v3/roles/517d8e4695

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