put
https://{yourinstance}.makaira.io/search-query-hook/
Updates an existing search query hook.
Requires authentication.
Request
PUT /search-query-hook/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The ID of the search query hook to update. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | No | When the hook executes: pre-search, post-search, or modify-result. |
target | string | No | Where the hook applies: search or recommendation. |
url | string | No | Updated webhook URL. |
priority | integer | No | Updated execution priority. |
Example Request
{
"url": "https://my-service.example.com/hooks/search-v2",
"priority": 20
}Response
Returns the updated search query hook object.
Example Response
{
"id": 3,
"type": "post-search",
"target": "search",
"url": "https://my-service.example.com/hooks/search-v2",
"priority": 20
} 200Updated

