curl --request POST \
--url https://api.buildr.com/api/2023-01/webhooks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"url": "https://example.com/webhook",
"description": "Webhook endpoint",
"filter_types": [
"project.create"
],
"secret": "secret",
"rate_limit": 100
}
}'
{
"webhook": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com/webhook",
"version": 1,
"description": "Webhook endpoint",
"filter_types": [
"project.create"
]
}
}
curl --request POST \
--url https://api.buildr.com/api/2023-01/webhooks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"webhook": {
"url": "https://example.com/webhook",
"description": "Webhook endpoint",
"filter_types": [
"project.create"
],
"secret": "secret",
"rate_limit": 100
}
}'
{
"webhook": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com/webhook",
"version": 1,
"description": "Webhook endpoint",
"filter_types": [
"project.create"
]
}
}
Created Response
The response is of type object
.