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
is_oem
optional

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


Value: Must be a Boolean
child_organisation_key
optional

Organisation key of child account where oem user wants to update user. Required field if is_oem is present.


Value: Must be a String

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":"bill","last_name":"Doe","phone":"9803123547","role":"admin"},"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": "bill@acme.com",
    "first_name": "bill",
    "last_name": "Doe",
    "phone": "9803123547",
    "role": "admin",
    "time_zone": "Mumbai",
    "user_key": "1e5228ttd8",
    "created_at": 1446627978,
    "updated_at": 1448444844,
    "role_name": "Account Admin",
    "role_key": "67e37d7bat"
  }
}