List All Hooks

{
  "username": "root",
  "password": "root",
  "q": "hook-list",
  "ds": "ds",
  "c": "c"
}

Gets the list of all hooks registered on a specific collection.

For getting a list of hooks registered on an entire datastore, the following REST query can be used by skipping the c parameter.

{
  "username": "root",
  "password": "root",
  "q": "hook-list",
  "ds": "ds"
}

Response Structure

{
  "ack": "1",
  "p": [ 
    {
      "id": "xxx",
      "data": "ds",
      "type": "event",
      "operation": "insert",
      "url": "http://<url>"
    },
    {
      "id": "yyy",
      "data": "ds.collection",
      "type": "transaction",
      "operation": "update",
      "url": "https://<url>"
    }
  ]
}

The payload p in the response is a array of JSON objects. Each object within the array corresponds to details of one hook. Each object contains an id field that allows for uniquely identifying the hook. Knowing the hook’s id is essential for deleting a hook.