Skip to main content
PUT
/
webhooks
/
{webhookId}
Update Webhook
curl --request PUT \
  --url https://api.dfns.io/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "url": "<string>",
  "description": "<string>",
  "events": [
    "policy.triggered"
  ],
  "status": "Enabled"
}'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "policy.triggered"
  ],
  "status": "Enabled",
  "description": "<string>",
  "dateCreated": "<string>",
  "dateUpdated": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
❌ Delegated User (EndUser)
✅ Service Account

Required Permissions

Webhooks:Update: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Path Parameters

webhookId
string
required
Minimum length: 1

Body

application/json
url
string

Webhook url

description
string
Maximum length: 256
events
enum<string>[]

All events this webhook is subscribed to.

Minimum length: 1
status
enum<string>

Webhook status

Available options:
Enabled,
Disabled

Response

200 - application/json

Success

Webhook

id
string
required

Webhook ID

url
string
required

Webhook url

events
enum<string>[]
required

All events this webhook is subscribed to.

status
enum<string>
required

Webhook status

Available options:
Enabled,
Disabled
dateCreated
string
required

Date when webhook was created

dateUpdated
string
required

Date when webhook was last updated

description
string

Short description this webhook's purpose

I