-
Notifications
You must be signed in to change notification settings - Fork 4
PUT hook {hook_id}
Igor Balos edited this page Jun 18, 2018
·
6 revisions
This endpoint let's you add additional response options to POST/GET /hook/{hook_id} endpoints. For example, you could set additional response to be a delay in response of 5 seconds.
Querystring parameters
- clear - allows you to clear all data or responses from the endpoint. Possible values: 'data','response', 'data,response'
- response_status - allows you to set http status to X number for each next POST/GET request to /hook/{hook_id}
- response_delay - allows you to set delayed response for X seconds for each next POST/GET request to /hook/{hook_id}
Example CURL webhook request - http response 500, response delay 3 seconds
CURL -X PUT 'http://localhost:8888/hook/8a85d917-22af-7928-a4e1-148c980b3bc8?response_status=500&response_delay=3' -d ''"
Example request response
{
"Message":"Status set to 500. Delay set to 3."
}
Sinhook web hook testing app.