- URL:
- https://<root>/WebHooks?
- Methods:
POST- Version Introduced:
- June, 2024
Description
The organization webhooks API allows a organization administrator to manage and control all webhooks within an organization.
Pagination
The result and result parameters allows a client to query a designated amount of webhook results at a time, significantly improving the user experience and the loading time of web pages. It also makes navigation through multiple pages much more accessible, especially on mobile devices.
Request parameters
| Property | Details |
|---|---|
result | This value determines the starting point for displaying records in a list. When not specifying a value for the |
result | This value indicates the total number of records available in the list. The value must be an integer between 1 and 100. When not specifying a value for the |
exceed | The Values: |
order | The organization administrator can use the Values: |
user | The organization administrator can also search the webhooks owned by specific owners. Values: |
f | The response format. The default response format is Values: |
Example usage
Below is a sample request URL used to access the Webhooks resource:
In this example the result will start at record 0 and return results for 2 records.
https://myserver.domain.com/myTenant/ArcGIS/rest/admin/WebHooks?resultOffset=0&resultRecordCount=2JSON Response examples
The following demonstrates the type of response that is returned when the exceed parameter is set as true:
[
{
"exceededTransferLimit" : true,
"webhooks" : [
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... },
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... }, ...
]
}
]JSON Response example
The following demonstrates the type of response that is returned when the exceed parameter is set as false:
[
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... },
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... }, ...
]Example usages
OrderBy service name example
The following is a sample request URL for the Webh resource that demonstrates how to order the list of webhooks by service name:
https://myserver.domain.com/myTenant/ArcGIS/rest/admin/WebHooks?orderBy=serviceName&f=pjsonThe example URL below demonstrates how to search the list of webhooks using the webhook owner's username:
https://myserver.domain.com/myTenant/ArcGIS/rest/admin/WebHooks?user=testAdmin1&f=pjsonJSON Response example
The example response below is ordered by service name:
[
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... },
{
"name" : "test_hook_2",
"owner" : "testAdmin2",
"id" : 5183, ... }, ...
]The example response below is a list of webhooks owned by a specific user:
[
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... },
{
"name" : "test_hook_1",
"owner" : "testAdmin1",
"id" : 5183, ... }, ...
]