Skip to main content
PUT
/
webhooks
/
{webhookId}
Update a webhook
curl --request PUT \
  --url https://core.cyberun.cloud/api/v1/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "Updated Webhook Name",
  "webhook_url": "https://my-app.example.com/webhooks/v2",
  "webhook_events": [
    "task.completed"
  ],
  "webhook_status": "active"
}
'
{
  "id": "019abc12-3456-7890-abcd-ef1234567890"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT (Bearer ). Must be paired with the X-Team-ID request header on team-scoped endpoints so the server knows which team's resources to operate on.

Headers

X-Team-ID
string<uuid>

UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):

  • JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
  • Credential callers (sk-, dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
Example:

"019abc12-4567-7890-abcd-ef1234567891"

Path Parameters

webhookId
string<uuid>
required

UUID of the webhook.

Example:

"019abc12-0123-7890-abcd-ef1234567897"

Body

application/json

All fields are optional. Only provided fields are updated.

display_name
string

Human-readable name for the webhook.

Required string length: 1 - 255
Example:

"Updated Webhook Name"

webhook_url
string<uri>

HTTPS endpoint URL to receive webhook payloads.

Maximum string length: 2048
Pattern: ^https://
Example:

"https://my-app.example.com/webhooks/v2"

webhook_events
enum<string>[]

Updated list of event types to subscribe to.

Minimum array length: 1
Available options:
task.completed,
task.failed
Example:
["task.completed"]
webhook_status
enum<string>

Webhook status:

  • active: Receives event deliveries normally.
  • disabled: Pauses all deliveries (events are silently dropped, not queued).
Available options:
active,
disabled
Example:

"active"

Response

Webhook updated

id
string<uuid>
required

UUID of the created or updated resource.

Example:

"019abc12-3456-7890-abcd-ef1234567890"