PUT
/
webhooks
/
{id}
curl --request PUT \
  --url https://app.formbricks.com/api/v2/management/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "source": "user",
  "environmentId": "<string>",
  "triggers": [
    "responseFinished"
  ],
  "surveyIds": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z",
  "url": "<string>",
  "source": "user",
  "environmentId": "<string>",
  "triggers": [
    "responseFinished"
  ],
  "surveyIds": [
    "<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 webhook

Body

application/json
The webhook to update

The body is of type object.

Response

200 - application/json
Webhook updated successfully.

The response is of type object.