API reference
POSTRequires Bearer token
Update a company user
/api/users/update/{user}
Multipart if uploading a stamp image.
Path parameters
| Field | Type | Description |
|---|---|---|
user Required | string | Path parameter user. |
Query parameters
This endpoint has no query parameters.
Request body
Send as multipart/form-data.
| Field | Type | Description |
|---|---|---|
name | string | Last name. |
firstname | string | First name. |
email | string | Email. |
cni_number | string | ID document number. |
phone | string | Phone. |
password | string | New password (min 8, local accounts only). |
role_id | integer | Company role. |
role_managed_locally | boolean | Keep the role when LDAP syncs. e.g. true |
image | string | Stamp image (png/jpg, max 5240 KB). |
Responses
| Status | Meaning |
|---|---|
| 201 | Created |
| 401 | Missing or invalid Bearer token. |