PUT
/
contact-attribute-keys
/
{id}
curl --request PUT \
  --url https://app.formbricks.com/api/v2/management/contact-attribute-keys/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "Email Address",
  "description": "The user'\''s email address",
  "key": "email"
}'
{
  "id": "<string>",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z",
  "isUnique": false,
  "key": "email",
  "name": "Email Address",
  "description": "The user's email address",
  "type": "custom",
  "environmentId": "<string>"
}

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Path Parameters

id
string
required

The ID of the contact attribute key

Body

application/json
The contact attribute key to update

A contact attribute key to update.

Response

200 - application/json
Contact attribute key updated successfully.

The response is of type object.