> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v60/llms.txt)

# Update a User

> PUT /profiles/{profile_id}/users/{user_id}



## Servers
- https://servername.iformbuilder.com/exzact/api/v60: https://servername.iformbuilder.com/exzact/api/v60


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}


### Path parameters

- **profile_id** (string)
  id of the profile

- **user_id** (string)
  id of the user



### Body: application/json (object)

- **password** (string)
  Minimum 8 characters. Servers with password complexity
  enabled also require an uppercase letter, a lowercase letter, a
  number, and one of ``!@#$%^&*()-_=+~`,.`` Servers that keep
  password history also reject a previously used password.
  A failing password returns 400 with `error_message`
  "Parameter 'password' is invalid".
  ZIM-integrated servers also apply ZIM's own password policy and
  return 400 with ZIM's error description as the message.

- **first_name** (string)

- **last_name** (string)

- **email** (string)

- **role** (string)
  must match "server", "company" or "basic". Only a caller with the `server` role can set `server` or update a user who has it. Other callers get 403. When a request changes the role, `can_edit_records` and `can_delete_records` reset to `false` unless the same request sends them. The `company` and `server` roles always include both, so the reset only shows when a user moves to `basic`.

- **can_form_edit** (boolean)

- **can_thunderplug_sync** (boolean)

- **can_edit_records** (boolean)
  Can edit records

- **can_delete_records** (boolean)
  Can delete records

- **can_manage_templates** (boolean)
  Can create and edit document templates

- **can_generate_documents** (boolean)
  Can generate documents

- **is_locked** (boolean)
  Can only unlock user



## Responses
### 200
OK

#### Body: application/json (object)
- **id** (number)
  the updated user id



[Powered by Bump.sh](https://bump.sh)
