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

NameInTypeRequiredDescription
» isAlertHookbodybooleanOptionalIndicates if this webhook is used for alerts.
» endpointbodyRequiredThe new target URL to send webhook payloads to.
» authTypebodystringRequiredAuthentication method (none, basic, querystring, authheader, header, bearer).
» userNamebodystringOptionalRequired for basic authType.
» passwordbodystringOptionalRequired for basic authType.
» tokenbodystringOptionalRequired for token-based authTypes.

Responses

StatusMeaningDescriptionSchema
200OKWebhook updated successfully
400Bad RequestInvalid input – Validation error or Webhook not foundNone

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.