Delete script hook

This function removes a script hook.

SecurityBasicAuth
Request
query Parameters
id
required
string

The script hook's ID.

Note:

To retrieve a hook's ID, use the WHM API 1 list_hooks function.

Example: id=HzEpGvT6QGUYwxuX3hWB8AUq
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/delete_hook
Request samples
whmapi1 --output=jsonpretty \
  delete_hook \
  id='HzEpGvT6QGUYwxuX3hWB8AUq'
Response samples
application/json
{
  • "metadata": {
    • "command": "delete_hook",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}