PUT
/
api
/
v1
/
external
/
webhook
/
{id}
Update a webhook
curl --request PUT \
  --url http://dev-backend-1.guestme.space/api/v1/external/webhook/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "url": "https://example.com/webhook",
  "token": "<string>",
  "authorizationHeaderPrefix": "Bearer",
  "events": [
    "CREATE"
  ],
  "entities": [
    "RESTAURANT"
  ]
}'
{
  "id": 123,
  "url": "https://example.com/webhook",
  "token": "<string>",
  "authorizationHeaderPrefix": "Bearer",
  "events": [
    "CREATE"
  ],
  "entities": [
    "RESTAURANT"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Webhook ID

Body

application/json

Response

200 - */*

OK

The response is of type object.