PUT
/
contacts
/
{id}
curl --request PUT \
  --url https://app.formbricks.com/api/v2/management/contacts/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "environmentId": "<string>"
}'
{
  "id": "<string>",
  "userId": "<string>",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z",
  "environmentId": "<string>"
}

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Path Parameters

contactId
string
required

Body

application/json
The response to update

A contact to create

environmentId
string
required

The environment this contact belongs to

userId
string | null

Optional external user identifier

Response

200 - application/json
Response updated successfully.
id
string
required

Unique identifier for the contact

userId
string | null
required

Optional external user identifier

createdAt
string
required

When the contact was created

Example:

"2021-01-01T00:00:00.000Z"

updatedAt
string
required

When the contact was last updated

Example:

"2021-01-01T00:00:00.000Z"

environmentId
string
required

The environment this contact belongs to

Was this page helpful?