Updates SIP hooks.
Adds or replaces SIP hooks in the cache. Hooks with matching hosts (case-insensitive) will be replaced. Hosts defined in the application configuration cannot be modified. The changes take effect immediately and persist across server restarts.
Note: Secrets are NOT stored in the cache. Runtime-added hooks will use the global hook_secret from the server configuration.
Request Body
Array of hook entries with host and url fields.
Returns
- 200 OK - Updated list of SIP hooks
- 400 Bad Request - If validation fails (e.g., duplicate hosts)
- 500 Internal Server Error - If writing the cache fails
Request body
Example request
{
"hooks": [
{
"auth_id": "tenant-123",
"host": "example.com",
"url": "https://webhook.example.com/events"
}
]
}Response
Updated list of SIP hooks
Example response
{
"hooks": [
{
"auth_id": "tenant-123",
"host": "example.com",
"url": "https://webhook.example.com/events"
}
]
}Changes
Changed in 5 of the 13 revisions of this API.24
- ○
the endpoint scheme security
authwas added to the APIapi-security-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added the new required request property
//new-required-request-property
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ▲
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲