PATCH
/
{organizationId}
/
users
curl --request PATCH \
  --url https://app.formbricks.com/api/v2/organizations/{organizationId}/users \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "isActive": true,
  "name": "<string>",
  "email": "example@example.com",
  "role": "member",
  "teams": [
    "team1",
    "team2"
  ]
}'
{
  "id": "<string>",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z",
  "lastLoginAt": "2021-01-01T00:00:00.000Z",
  "isActive": true,
  "name": "John Doe",
  "email": "example@example.com",
  "role": "member",
  "teams": [
    "team1",
    "team2"
  ]
}

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Path Parameters

organizationId
string
required

The ID of the organization

Body

application/json
The user to update

The body is of type object.

Response

200 - application/json
User updated successfully.

The response is of type object.