# Flowg8 · Edit webhook destination

Change the destination, event selection or enabled state with revision protection.



## PUT /v1/webhook-endpoints/{endpointId}

Authentication: FLOWG8_ACCESS_TOKEN from Flowg8 sign-in
Required tenant header: X-Organization-Id.
Required user permissions: Administrator or Sandbox developer required. The API checks current membership, roles, key scopes and resource permissions on every request. Documentation visibility grants no access.

## Input parameters
- name (string, required): min length 1 · max length 80
- url (string, required): uri · max length 2048
- events (array, required): min items 1 · max items 20
- active (boolean, optional): default true
- revision (integer, required): min 1 · max 9007199254740991

## Request example (replace example IDs)

```sh
curl -X PUT "https://api.flowg8.io/v1/webhook-endpoints/endpointId" \
  -H "authorization: Bearer $FLOWG8_ACCESS_TOKEN" \
  -H "x-organization-id: 10000000-0000-4000-8000-000000000001" \
  -H "idempotency-key: example-update-webhook-001" \
  -H "content-type: application/json" \
  --data-raw '{
  "name": "ERP approvals",
  "url": "https://api.example.com/webhooks/flowg8",
  "events": [
    "run.approved",
    "run.rejected"
  ],
  "active": true,
  "revision": 1
}'
```

Source: /docs/update-webhook
Full schemas: /docs/openapi.json
