Delete a hook
Remove the hook so subsequent tool calls no longer consult it.
DELETE
/api/v1/tool-hooks/:idconst response = await fetch("https://api.smallworld.sh/api/v1/tool-hooks/72b98ef7-4750-4521-b11d-82c114aa56f4", {
method: "DELETE",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Path parameters#
idUUIDrequiredThe hook ID returned during creation or listing.
Responses#
Returns the result of this operation.
{
"deleted": true
}
More about this endpoint
Authenticate with a workspace API key. Unknown body fields and query parameters are rejected.