curl --request PATCH \
--url http://localhost:8080/webhooks/{webhook_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"description": "<string>",
"is_active": true
}
'{
"id": 123,
"name": "<string>",
"url": "<string>",
"event_type": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_triggered_at": "2023-11-07T05:31:56Z",
"failure_count": 123,
"success_count": 123
}Обновить webhook.
curl --request PATCH \
--url http://localhost:8080/webhooks/{webhook_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"description": "<string>",
"is_active": true
}
'{
"id": 123,
"name": "<string>",
"url": "<string>",
"event_type": "<string>",
"is_active": true,
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_triggered_at": "2023-11-07T05:31:56Z",
"failure_count": 123,
"success_count": 123
}Successful Response