Skip to main content
POST
Save a view

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
name
string
required

Unique among your views

Required string length: 1 - 255
Example:

"Enterprise renewals"

table
string
required

The app page (or page tab) to save it on: accounts, people, opportunities, or a tab such as accounts_customer or opportunities_renewal

Maximum string length: 255
Example:

"accounts"

columns
ColumnIn · object[] | null

The grid's columns, in order, as GET /v1/views/{view_id} shows them (read them, change them, send them back). Each names a field of its object (GET /v1/fields): the view's own, or account on an opportunities view. A field, subfield or object the grid does not have is a 422. null: the page's own columns

Maximum array length: 200
Example:
conditions
Conditions · object | null

Which records the view selects: a filter tree in the app's own format, as GET /v1/views/{view_id} shows a view's conditions (read one, change it, send it back). A condition names a field with an operation and a value; a group combines conditions with and/or. A tree the app cannot read, a condition on a field its entity does not have, or more than 200 objects and lists, is a 422. null: every record

Example:
default
boolean
default:false

Also make it your default view of its table

list_type
enum<string> | null

Whose records: my_book and team_book are the book of the key's creator; null: every record

Available options:
my_book,
team_book,
all_customers,
churned,
unset,
other
Example:

"my_book"

shared
boolean
default:false

A workspace view, which every member sees

sort
SortKey · object[] | null

The grid's sort, first key first, by a field (or one of its subfields) of the view's own object; another field, or another object's (the opportunities grid does not sort by account columns), is a 422. Empty: unsorted

Maximum array length: 10
Example:

Response

201 - application/json

Successful Response

id
integer
required
name
string
required
object
enum<string>
required

The records the view selects: pass its id as view_id to this object's list

Available options:
account,
contact,
opportunity
shared
boolean
required

A workspace view, which every member sees

table
string
required

The app page (or page tab) the view belongs to, such as accounts or accounts_customer

type
enum<string>
required
Available options:
view,
segment
columns
Column · object[] | null

The grid's columns, in order; none: the page's own

conditions
Conditions · object | null

The view's filter, in the app's own filter format; none selects every record

default
boolean
default:false

The default view of its table for the key's creator

list_type
enum<string> | null

Whose records the view selects. my_book and team_book are the book of the key's creator; none means every record

Available options:
my_book,
team_book,
all_customers,
churned,
unset,
other
owner
ViewOwner · object | null
sort
SortOrder · object[]

The grid's sort, first key first