Update a user
Updates an existing user in the database.
Only available for self-hosted Formbricks.
PATCH
Authorizations
Use your Formbricks x-api-key to authenticate.
Path Parameters
The ID of the organization
Body
application/json
The user to update
The email of the user
Maximum length:
255
Example:
"example@example.com"
Whether the user is active
Example:
true
Minimum length:
1
The role of the user in the organization
Available options:
owner
, manager
, member
Example:
"member"
The list of teams the user is a member of
Example:
["team1", "team2"]
Response
200 - application/json
User updated successfully.
The ID of the user
The date and time the user was created
Example:
"2021-01-01T00:00:00.000Z"
The date and time the user was last updated
Example:
"2021-01-01T00:00:00.000Z"
The date and time the user last logged in
Example:
"2021-01-01T00:00:00.000Z"
Whether the user is active
Example:
true
The name of the user
Minimum length:
1
Example:
"John Doe"
The email of the user
Maximum length:
255
Example:
"example@example.com"
The role of the user in the organization
Available options:
owner
, manager
, member
Example:
"member"
The list of teams the user is a member of
Example:
["team1", "team2"]
Was this page helpful?