2013-03-06 11:33:32 +01:00
|
|
|
All methods require admin authorization.
|
|
|
|
|
|
|
|
## List system hooks
|
|
|
|
|
|
|
|
Get list of system hooks
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /hooks
|
|
|
|
```
|
|
|
|
|
2013-03-07 17:56:11 +01:00
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ **none**
|
|
|
|
|
2013-03-06 11:33:32 +01:00
|
|
|
|
|
|
|
## Add new system hook hook
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /hooks
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ `url` (required) - The hook URL
|
|
|
|
|
|
|
|
|
|
|
|
## Test system hook
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /hooks/:id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ `id` (required) - The ID of hook
|
|
|
|
|
|
|
|
|
|
|
|
## Delete system hook
|
|
|
|
|
2013-03-07 17:56:11 +01:00
|
|
|
Deletes a system hook. This is an idempotent API function and returns `200 Ok` even if the hook
|
|
|
|
is not available. If the hook is deleted it is also returned as JSON.
|
|
|
|
|
2013-03-06 11:33:32 +01:00
|
|
|
```
|
|
|
|
DELETE /hooks/:id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ `id` (required) - The ID of hook
|