Script Hooks
Scripts Hooks
Update script hooks order
This function changes the order of script hooks.
get/reorder_hooks
Query parameters
idsstring required
Example:HzEpGvT6QGUYwxuX3hWB8AUq,UNs8a8IbbAVf5oi_hXbcEw5a
A comma-seprated list of script hook IDs, in order of priority.
Note:
To retrieve a hook's ID, use the WHM API 1 list_hooks function.
Response
HTTP Request was successful.
Example response
{
"data": {
"hook_order": [
{
"id": "HzEpGvT6QGUYwxuX3hWB8AUq",
"weight": 100
},
{
"id": "UNs8a8IbbAVf5oi_hXbcEw5a",
"weight": 200
}
]
},
"metadata": {
"command": "reorder_hooks",
"reason": "OK",
"result": 1,
"version": 1
}
}