Cloud API - Webhooks
Base URL: https://public-api.loadgen.cloud
This article documents webhook endpoints (subscriptions, events, send attempts, and resend operations).
Get
Method: GET
Path: /api/services/app/WebhookEvent/Get
Operation ID: ApiServicesAppWebhookeventGetGet
Tag: WebhookEvent
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| id | query | string | No | | |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: WebhookEvent
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| webhookName | string | Yes | | minLength: 1 |
| creationTime | string (date-time) | No | | format: date-time |
| data | string | No | | |
| deletionTime | string (date-time) | No | | format: date-time |
| id | string (uuid) | No | | format: uuid |
| isDeleted | boolean | No | | |
| tenantId | integer (int32) | No | | format: int32 |
Example response
`json
{
"result": {
"webhookName": "string",
"data": "string",
"creationTime": "2025-01-01T00:00:00Z"
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookEvent/Get?id=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookEvent/Get?id=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
GetAllSendAttempts
Method: GET
Path: /api/services/app/WebhookSendAttempt/GetAllSendAttempts
Operation ID: ApiServicesAppWebhooksendattemptGetallsendattemptsGet
Tag: WebhookSendAttempt
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| SubscriptionId | query | string | No | | |
| MaxResultCount | query | integer (int32) | No | | format: int32
min: 1
max: 1000 |
| SkipCount | query | integer (int32) | No | | format: int32
min: 0
max: 2147483647 |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: GetAllSendAttemptsOutputPagedResultDto
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| items | array | No | | |
| totalCount | integer (int32) | No | | format: int32 |
Example response
`json
{
"result": {
"totalCount": 0,
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"webhookEventId": "00000000-0000-0000-0000-000000000000",
"webhookName": "string"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSendAttempt/GetAllSendAttempts?SubscriptionId=string&MaxResultCount=1&SkipCount=0" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSendAttempt/GetAllSendAttempts?SubscriptionId=string&MaxResultCount=1&SkipCount=0"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
GetAllSendAttemptsOfWebhookEvent
Method: GET
Path: /api/services/app/WebhookSendAttempt/GetAllSendAttemptsOfWebhookEvent
Operation ID: ApiServicesAppWebhooksendattemptGetallsendattemptsofwebhookeventGet
Tag: WebhookSendAttempt
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| Id | query | string | No | | |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: GetAllSendAttemptsOfWebhookEventOutputListResultDto
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| items | array | No | | |
Example response
`json
{
"result": {
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"webhookUri": "string",
"webhookSubscriptionId": "00000000-0000-0000-0000-000000000000"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSendAttempt/GetAllSendAttemptsOfWebhookEvent?Id=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSendAttempt/GetAllSendAttemptsOfWebhookEvent?Id=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
Resend
Method: POST
Path: /api/services/app/WebhookSendAttempt/Resend
Operation ID: ApiServicesAppWebhooksendattemptResendPost
Tag: WebhookSendAttempt
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| sendAttemptId | query | string | No | | |
Request body
None
Response
None
Curl
`bash
curl -X POST "https://public-api.loadgen.cloud/api/services/app/WebhookSendAttempt/Resend?sendAttemptId=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSendAttempt/Resend?sendAttemptId=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method POST -Uri $uri -Headers $headers
`
ActivateWebhookSubscription
Method: POST
Path: /api/services/app/WebhookSubscription/ActivateWebhookSubscription
Operation ID: ApiServicesAppWebhooksubscriptionActivatewebhooksubscriptionPost
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
Request body schema: ActivateWebhookSubscriptionInput
Request body fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| isActive | boolean | No | | |
| subscriptionId | string (uuid) | No | | format: uuid |
Example request body
`json
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"isActive": false
}
`
Response
None
Curl
`bash
curl -X POST "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/ActivateWebhookSubscription" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json" \\
-H "Content-Type: application/json" \\
--data-raw '{"subscriptionId":"00000000-0000-0000-0000-000000000000","isActive":false}'
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/ActivateWebhookSubscription"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
$body = @'
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"isActive": false
}
'@
Invoke-RestMethod -Method POST -Uri $uri -Headers $headers -ContentType "application/json" -Body $body
`
AddSubscription
Method: POST
Path: /api/services/app/WebhookSubscription/AddSubscription
Operation ID: ApiServicesAppWebhooksubscriptionAddsubscriptionPost
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
Request body schema: WebhookSubscription
Request body fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| headers | object | No | | |
| id | string (uuid) | No | | format: uuid |
| isActive | boolean | No | | |
| secret | string | No | | |
| tenantId | integer (int32) | No | | format: int32 |
| webhooks | array | No | | |
| webhookUri | string | No | | |
Example request body
`json
{
"tenantId": 0,
"webhookUri": "string",
"secret": "string"
}
`
Response
None
Curl
`bash
curl -X POST "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/AddSubscription" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json" \\
-H "Content-Type: application/json" \\
--data-raw '{"tenantId":0,"webhookUri":"string","secret":"string"}'
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/AddSubscription"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
$body = @'
{
"tenantId": 0,
"webhookUri": "string",
"secret": "string"
}
'@
Invoke-RestMethod -Method POST -Uri $uri -Headers $headers -ContentType "application/json" -Body $body
`
GetAllAvailableWebhooks
Method: GET
Path: /api/services/app/WebhookSubscription/GetAllAvailableWebhooks
Operation ID: ApiServicesAppWebhooksubscriptionGetallavailablewebhooksGet
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: GetAllAvailableWebhooksOutputListResultDto
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| items | array | No | | |
Example response
`json
{
"result": {
"items": [
{
"name": "string",
"displayName": "string",
"description": "string"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/GetAllAvailableWebhooks" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/GetAllAvailableWebhooks"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
GetAllSubscriptions
Method: GET
Path: /api/services/app/WebhookSubscription/GetAllSubscriptions
Operation ID: ApiServicesAppWebhooksubscriptionGetallsubscriptionsGet
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: GetAllSubscriptionsOutputListResultDto
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| items | array | No | | |
Example response
`json
{
"result": {
"items": [
{
"webhookUri": "string",
"isActive": false,
"webhooks": [
"string"
]
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/GetAllSubscriptions" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/GetAllSubscriptions"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
GetAllSubscriptionsIfFeaturesGranted
Method: GET
Path: /api/services/app/WebhookSubscription/GetAllSubscriptionsIfFeaturesGranted
Operation ID: ApiServicesAppWebhooksubscriptionGetallsubscriptionsiffeaturesgrantedGet
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| webhookName | query | string | No | | |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: GetAllSubscriptionsOutputListResultDto
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| items | array | No | | |
Example response
`json
{
"result": {
"items": [
{
"webhookUri": "string",
"isActive": false,
"webhooks": [
"string"
]
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/GetAllSubscriptionsIfFeaturesGranted?webhookName=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/GetAllSubscriptionsIfFeaturesGranted?webhookName=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
GetSubscription
Method: GET
Path: /api/services/app/WebhookSubscription/GetSubscription
Operation ID: ApiServicesAppWebhooksubscriptionGetsubscriptionGet
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| subscriptionId | query | string | No | | |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: WebhookSubscription
Response fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| headers | object | No | | |
| id | string (uuid) | No | | format: uuid |
| isActive | boolean | No | | |
| secret | string | No | | |
| tenantId | integer (int32) | No | | format: int32 |
| webhooks | array | No | | |
| webhookUri | string | No | | |
Example response
`json
{
"result": {
"tenantId": 0,
"webhookUri": "string",
"secret": "string"
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X GET "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/GetSubscription?subscriptionId=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/GetSubscription?subscriptionId=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method GET -Uri $uri -Headers $headers
`
IsSubscribed
Method: POST
Path: /api/services/app/WebhookSubscription/IsSubscribed
Operation ID: ApiServicesAppWebhooksubscriptionIssubscribedPost
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
| Name | In | Type | Required | Default | Notes |
|---|---|---|---:|---|---|
| webhookName | query | string | No | | |
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: boolean
Response fields
None
Example response
`json
{
"result": false,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X POST "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/IsSubscribed?webhookName=string" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json" \\
-H "Content-Type: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/IsSubscribed?webhookName=string"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method POST -Uri $uri -Headers $headers
`
PublishTestWebhook
Method: POST
Path: /api/services/app/WebhookSubscription/PublishTestWebhook
Operation ID: ApiServicesAppWebhooksubscriptionPublishtestwebhookPost
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
None
Response
Response envelope: ABP
- The actual payload is usually under the
resultproperty. - Success is indicated by
success: true. Errors are provided viaerrorandunAuthorizedRequest.
200 OK response schema: string
Response fields
None
Example response
`json
{
"result": "string",
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"\\abp": true
}
`
Curl
`bash
curl -X POST "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/PublishTestWebhook" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json" \\
-H "Content-Type: application/json"
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/PublishTestWebhook"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
Invoke-RestMethod -Method POST -Uri $uri -Headers $headers
`
UpdateSubscription
Method: PUT
Path: /api/services/app/WebhookSubscription/UpdateSubscription
Operation ID: ApiServicesAppWebhooksubscriptionUpdatesubscriptionPut
Tag: WebhookSubscription
Authentication: Yes (Bearer token)
Scope: Tenant (default)
Notes:
- Most endpoints return an ABP-style response envelope. In practice, the payload is usually available under the
resultproperty. - This API is multi-tenant. Even when there is no explicit
TenantIdquery parameter, tenant context is typically derived from the JWT token and/or theAbp.TenantIdheader.
Parameters
None
Request body
Request body schema: WebhookSubscription
Request body fields
| Field | Type | Required | Description | Notes |
|---|---|---:|---|---|
| headers | object | No | | |
| id | string (uuid) | No | | format: uuid |
| isActive | boolean | No | | |
| secret | string | No | | |
| tenantId | integer (int32) | No | | format: int32 |
| webhooks | array | No | | |
| webhookUri | string | No | | |
Example request body
`json
{
"tenantId": 0,
"webhookUri": "string",
"secret": "string"
}
`
Response
None
Curl
`bash
curl -X PUT "https://public-api.loadgen.cloud/api/services/app/WebhookSubscription/UpdateSubscription" \\
-H "Authorization: Bearer " \\
-H "Abp.TenantId: 12345" \\
-H "Accept: application/json" \\
-H "Content-Type: application/json" \\
--data-raw '{"tenantId":0,"webhookUri":"string","secret":"string"}'
`
PowerShell
`powershell
$baseUrl = "https://public-api.loadgen.cloud"
$uri = "$baseUrl/api/services/app/WebhookSubscription/UpdateSubscription"
$tenantId = 12345
$accessToken = ""
$headers = @{ Authorization = "Bearer $accessToken"; "Abp.TenantId" = "$tenantId"; Accept = "application/json" }
$body = @'
{
"tenantId": 0,
"webhookUri": "string",
"secret": "string"
}
'@
Invoke-RestMethod -Method PUT -Uri $uri -Headers $headers -ContentType "application/json" -Body $body
`