Edits an account; only the fields sent change.
Requires ManageUsers and an Idempotency-Key. The account must belong to the organization, must not be the key creator's own, and must hold a strictly lesser role than the creator (an OrganizationAdmin manages Managers and Users). role may rank up to the creator's own, so an OrganizationAdmin can promote a Manager or User to OrganizationAdmin. role and isActive go through the sync server like the user list's buttons; names and customRoleIds are written here. Whatever the edit adds to the account's permissions (all of them when it reactivates the account) must be held by the API key and its creator. Demoting or deactivating an Organization Admin is refused (403): use POST /api/v1/users/{id}/removal-requests (their approval or 14 days' notice). Every rule is checked before anything changes. Example: PATCH /api/v1/users/8f0c3c1e-2b6d-4c55-9a51-0d3f3c1b7e21 { "role": "Manager", "customRoleIds": [4] }.
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/users/{id}
- Auth: HTTP bearer
Path parameters
User id (string GUID).
Request body
Response
The account after the edit.
Changes
No recorded changes to this operation across all 1 revision of this API.