Hooks Web
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/hooks-web/ |
List Hooks Web |
| GET | /api/hooks-web/{uuid}/ |
Retrieve |
| POST | /api/hooks-web/ |
Create |
| PUT | /api/hooks-web/{uuid}/ |
Update |
| PATCH | /api/hooks-web/{uuid}/ |
Partial Update |
| DELETE | /api/hooks-web/{uuid}/ |
Delete |
List Hooks Web
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
hooks_web_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
author_email |
string | |
author_fullname |
string | User full name contains |
author_username |
string | |
author_uuid |
string (uuid) | |
content_type |
integer | Enum: 1, 2 |
destination_url |
string | |
is_active |
boolean | |
last_published |
string (date-time) | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
query |
string | Filter by author name, username and email |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
is_active |
boolean |
author_uuid |
string (uuid) |
event_types |
array of strings |
event_groups |
array of strings |
created |
string (date-time) |
modified |
string (date-time) |
hook_type |
string |
author_fullname |
string |
author_username |
string |
author_email |
string |
destination_url |
string (uri) |
content_type |
string |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
hooks_web_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
is_active |
boolean |
author_uuid |
string (uuid) |
event_types |
array of strings |
event_groups |
array of strings |
created |
string (date-time) |
modified |
string (date-time) |
hook_type |
string |
author_fullname |
string |
author_username |
string |
author_email |
string |
destination_url |
string (uri) |
content_type |
string |
Create
When hook is activated, POST request is issued against destination URL with the following data:
.. code-block:: javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
Note that context depends on event type.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
WebHookRequest - API Source:
hooks_web_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
is_active |
boolean | |
event_types |
array of strings | |
event_groups |
array of strings | |
destination_url |
string (uri) | ✓ |
content_type |
string |
201 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
is_active |
boolean |
author_uuid |
string (uuid) |
event_types |
array of strings |
event_groups |
array of strings |
created |
string (date-time) |
modified |
string (date-time) |
hook_type |
string |
author_fullname |
string |
author_username |
string |
author_email |
string |
destination_url |
string (uri) |
content_type |
string |
Update
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
WebHookRequest - API Source:
hooks_web_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
is_active |
boolean | |
event_types |
array of strings | |
event_groups |
array of strings | |
destination_url |
string (uri) | ✓ |
content_type |
string |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
is_active |
boolean |
author_uuid |
string (uuid) |
event_types |
array of strings |
event_groups |
array of strings |
created |
string (date-time) |
modified |
string (date-time) |
hook_type |
string |
author_fullname |
string |
author_username |
string |
author_email |
string |
destination_url |
string (uri) |
content_type |
string |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedWebHookRequest - API Source:
hooks_web_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
is_active |
boolean | |
event_types |
array of strings | |
event_groups |
array of strings | |
destination_url |
string (uri) | |
content_type |
string |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
is_active |
boolean |
author_uuid |
string (uuid) |
event_types |
array of strings |
event_groups |
array of strings |
created |
string (date-time) |
modified |
string (date-time) |
hook_type |
string |
author_fullname |
string |
author_username |
string |
author_email |
string |
destination_url |
string (uri) |
content_type |
string |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
hooks_web_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body