Skip to main content
PATCH
/
api
/
v1
/
views
/
{view_id}
Update View
curl --request PATCH \
  --url https://api.openfunnel.dev/api/v1/views/{view_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '
{
  "name": "<string>",
  "filters": {},
  "is_default": true,
  "slack_notifications": {
    "enabled": true,
    "target": "dm",
    "channel_id": "<string>"
  },
  "webhook_notifications": {
    "enabled": true,
    "url": "<string>"
  },
  "crm_assignment": {
    "enabled": true,
    "assignee_id": "<string>",
    "assignee_ids": [
      "<string>"
    ],
    "override_owner_ids": [
      "<string>"
    ]
  },
  "amplemarket_sequencing": {
    "enabled": true,
    "sequence_id": "<string>"
  }
}
'
{
  "view": {
    "id": "<string>",
    "user_id": "<string>",
    "name": "<string>",
    "filters": {},
    "is_default": false,
    "action_config": {},
    "last_notified_insight_id": 123,
    "last_notification_at": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  },
  "webhook_secret": "<string>",
  "message": "<string>"
}

Headers

X-API-Key
string
required

Path Parameters

view_id
string
required

The view's ID (returned by the create and list endpoints)

Body

application/json

Request to partially update a saved view. Omitted fields are left unchanged.

name
string | null

New view name (unique per user)

Minimum string length: 1
filters
Filters · object

Replacement account filters using the field names from GET /api/v2/account/filters (e.g. funding_stage_include, country_include). Replaces the view's filters entirely.

is_default
boolean | null

Set or unset this view as the default view

slack_notifications
ViewSlackConfig · object

Slack notification settings for a view.

webhook_notifications
ViewWebhookConfig · object

Webhook notification settings for a view.

crm_assignment
ViewCrmAssignment · object

CRM assignment settings for a view.

The CRM type (Salesforce or HubSpot) is detected automatically from the connected CRM integration - it does not need to be specified.

amplemarket_sequencing
ViewAmplemarketConfig · object

Amplemarket sequencing settings for a view.

Response

Successful Response

Response for create / get / update view endpoints.

view
SavedViewItem · object
required

Single saved view owned by a user.

webhook_secret
string | null

Webhook signing secret - returned only once, when a webhook is configured or its URL changes. Store it securely.

message
string | null