curl --request PUT \
  --url http://localhost:8001/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "callback": "<string>",
  "events": [
    "user"
  ],
  "enabled": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "callback": "<string>",
  "enabled": true,
  "failures": 1,
  "expires_at": "2023-11-07T05:31:56Z",
  "events": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "event": "user"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2022-09-14T12:15:09.788784Z"
}

Path Parameters

id
string
required

UUID of the requested object

Body

application/json
callback
string
required
events
enum<string>[]
required
Available options:
user,
user.create,
user.delete,
user.update,
user.update.email,
user.update.email.create,
user.update.email.delete,
user.update.email.primary
enabled
boolean
required

Response

200 - application/json
id
string
callback
string
enabled
boolean
failures
integer
expires_at
string
events
object[]
created_at
string
updated_at
string

Time of last update of the audit log