Return script hooks list

This function lists the server's script hooks.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/list_hooks
Request samples
whmapi1 --output=jsonpretty \
  list_hooks
Response samples
application/json
{
  • "data": {
    • "categories": [
      • {
        • "category": "RPM::Versions",
        • "events": [
          • {
            • "event": "MariaDB-server",
            • "stage_order": [
              • "pre",
              • "post"
              ],
            • "stages": [
              • {
                • "actions": [ ],
                • "attributes": { },
                • "description": null,
                • "stage": null
                }
              ]
            }
          ]
        }
      ]
    },
  • "metadata": {
    • "command": "list_hooks",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}