Updates a user with given parameters

Params

Param name Description
datonis_role_key
optional

Key of datonis role to be assigned to user. This field is required


Value: Must be a String
user
required

Map containing details of the user 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 '{"user":{"address":"Baner","city":"Pune","country":"India","first_name":"Mayank","last_name":"Thakur","phone":"9803123547","role":"admin"},"datonis_role_key":"67e37d7bat"}' https://api.datonis.io/api/v3/users/1e5228ttd8

Response (returns details of the user updated)
{
  "user": {
    "address": "Baner",
    "city": "Pune",
    "confirmed_at": "2015-11-04T09:08:01.247Z",
    "country": "India",
    "email": "mayank@altizon.com",
    "first_name": "Mayank",
    "last_name": "Thakur",
    "phone": "9803123547",
    "role": "admin",
    "time_zone": "Mumbai",
    "user_key": "1e5228ttd8",
    "created_at": 1446627978,
    "updated_at": 1448444844,
    "datonis_role_name": "Account Admin",
    "datonis_role_key": "67e37d7bat"
  }
}