POST
/
kvm
/
v2
/
hooks
/
set
curl --request POST \
  --url https://{api_host}.edisglobal.com/kvm/v2/hooks/set \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data signature=session_signature_12345 \
  --data kvm_id=kvm_123456_789012 \
  --data valid_until=2025-01-12T15:30:00Z \
  --data callback_method=post \
  --data callback_user=callback_user \
  --data callback_pw=callback_password \
  --data type=traffic \
  --data trigger_value=80 \
  --data callback_url=https://example.com/yourcallback
{
  "status": "success",
  "hook_id": "123"
}

Body

application/x-www-form-urlencoded

Required parameters to set a webhook for traffic monitoring.
All parameters must be passed in the request body as application/x-www-form-urlencoded.

The body is of type object.

Response

200
application/json

Webhook set successfully.

The response is of type object.