curl --location --request PUT '/v2/webhooks/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"url": "http://example.com",
"events": [
"customer.created"
],
"headers": {
"property1": "string",
"property2": "string"
},
"active": true,
"max_retries": 0,
"timeout_ms": 0
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"url": "http://example.com",
"events": [
"customer.created"
],
"active": true,
"max_retries": 0,
"timeout_ms": 0,
"headers": {
"property1": "string",
"property2": "string"
},
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"createdAt": "2019-08-24T14:15:22.123Z"
}