Skip to main content
PATCH
/
webhooks
/
targets
/
{id}
Update a webhook target
curl --request PATCH \
  --url https://api.platform.dakota.xyz/webhooks/targets/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "global": false,
  "event_types": [
    "api_key.created"
  ]
}
'
{
  "id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "url": "https://example.com/webhooks/receive",
  "global": false,
  "time_last_healthy": 123,
  "time_last_attempted": 123,
  "event_types": [
    "api_key.created"
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Path Parameters

id
string
required

Unique identifier (ksuid) of the webhook target KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json

Request to update an existing webhook target

global
boolean

If true, this target will receive all event types

Example:

false

event_types
string[]

List of event types this target cares about (ignored if global is true)

Response

Webhook target updated successfully

A webhook target for receiving outbound webhook events

id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

url
string<uri>
required

The URL where webhook events will be sent

Example:

"https://example.com/webhooks/receive"

global
boolean
required

If true, this target will receive all event types

Example:

false

time_last_healthy
integer
required

Unix timestamp when this target last received a successful delivery (defaults to creation time if never healthy)

time_last_attempted
integer
required

Unix timestamp when a delivery to this target was last attempted (defaults to creation time if never attempted)

event_types
string[]

List of event types this target cares about (ignored if global is true)