Skip to main content
PATCH
Update a view

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Idempotency-Key
string
required

A retry with the same key and body returns the first response

Required string length: 1 - 255

Path Parameters

id
string
required

A view_… ID or the view's key

Body

application/json
name
string

A new name, 1 to 80 characters

Required string length: 1 - 80
description
string | null

A new note, up to 280 characters; null removes it

Maximum string length: 280
definition
object

Replaces the whole definition

conversion
boolean

Set or clear the mark. Left out: unchanged

Response

Update a view

id
string
required

A view ID, starting with view_.

Pattern: ^view_[0-7][0-9a-hjkmnp-tv-z]{25}$
key
string
required

The view's key, unique in the project: lowercase words joined by dashes. It stands in for the ID in paths

Pattern: ^[a-z][a-z0-9-]{0,63}$
name
string
required

The view's name

shape
enum<string>
required

How its answer comes back, the type of its definition.shape

Available options:
number,
over_time,
list
visibility
enum<string>
required

Who can see the view. Only team exists: the project's members

Available options:
team
conversion
boolean
required

Whether this view is a conversion: something you want people to do. Only a view that counts one named event can be one.

updated_at
string<date-time>
required

When it last changed: UTC, ISO 8601

description
string | null
required

A note about the view; null if it has none

definition
object
required

The question: whose numbers, what to count, over which range, as which shape

endpoint
string
required

Where it answers: /v1/views/returning-users

made_by
enum<string>
required

Who saved it: a template installed, a member in the dashboard, a project key, or an agent

Available options:
template,
member,
key,
agent
template
string | null
required

A template ID, starting with tpl_.

Pattern: ^tpl_[0-7][0-9a-hjkmnp-tv-z]{25}$
dashboards
object[]
required

The dashboards that show this view

created_at
string<date-time>
required

When it was created: UTC, ISO 8601