PUT
/webhooks/{webhookId}Update Webhook
This endpoint updates the configuration of an existing webhook.
PUT
/webhooks/{webhookId}Important Notes
Validation Rules:
- If authType is none, then userName, password, and token must not be present.
- If authType is basic, both userName and password are mandatory.
- If authType is querystring or authheader or header or bearer token 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": "new-token-1234"
}Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
» isAlertHook | body | boolean | Optional | Indicates if this webhook is used for alerts. |
» endpoint | body | Required | The new target URL to send webhook payloads to. | |
» authType | body | string | Required | Authentication method (none, basic, querystring, authheader, header, bearer). |
» userName | body | string | Optional | Required for basic authType. |
» password | body | string | Optional | Required for basic authType. |
» token | body | string | Optional | Required for token-based authTypes. |
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/{webhookId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d '{"isAlertHook":"string","endpoint":"string","authType":"string","userName":"string","password":"string","token":"string"}'
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.