PUT
/webhooksUpdate Webhook
Update webhook configuration
Implementation Notes
This endpoint updates the configuration of an existing webhook.
Parameters:
- endpoint: The new target URL to send webhook payloads to.
- authType: Authentication method (
none,basic,querystring,authheader,header,bearer). - userName: Required for
basicauthType. - password: Required for
basicauthType. - token: Required for token-based authTypes.
Validation Rules:
- If
authTypeisnone, thenuserName,password, andtokenmust not be present. - If
authTypeisbasic, bothuserNameandpasswordare mandatory. - If
authTypeisquerystringorauthheaderorheaderorbearertoken must be provided. - You must provide either user credentials or a
token, but not both.
Example Request:
{ "endpoint": "https://example.com/updated-hook", "authType": "querystring", "token": "********" }
PUT
/webhooksParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | object | Required | none |
» isAlertHook | body | boolean | Optional | Indicates if this webhook is used for alerts. |
» endpoint | body | Required | Updated webhook endpoint URL | |
» authType | body | string | Required | Updated authentication type |
» userName | body | string | Optional | Required if authType is basic |
» password | body | string | Optional | Required if authType is basic |
» token | body | string | Optional | Required if using token-based authType (querystring, authheader, header, bearer). |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Webhook updated successfully | |
| 400 | Bad Request | Invalid input – Validation error or Webhook not found | None |
Example Request
# You can also use wget
curl -X PUT /webhooks \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Example responses
200 Response
{
"endpoint": "https://example.com/updated-hook",
"authType": "querystring",
"token": "********"
}Body parameter
{
"isAlertHook": true,
"endpoint": "https://example.com/updated-hook",
"authType": "none",
"userName": "admin",
"password": "newpassword123",
"token": "********"
}
Example responses
200 Response
{
"message": "Webhook updated successfully"
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.