Skip to main content
PATCH
Update a saved inbox view
Use group_by_attribute to change an attribute grouping’s key. Omit it to keep the current key when the grouping field stays the same, or send null to clear it. Changing group_by clears the old key unless you supply a new one. See grouping saved views.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The inbox view id

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
name
string

New name for the view

Required string length: 1 - 100
filters
object

Replaces the entire saved filter set — including the OR/exclude groups of an advanced view. Omit to leave the query untouched.

sort_by
enum<string>

New sort field

Available options:
last_message_at,
created_at,
sla_urgency,
snoozed_until
sort_order
enum<string>

New sort direction

Available options:
asc,
desc
group_by
enum<string> | null

New grouping field; null removes grouping. Omit to leave it unchanged.

Available options:
tags,
contact_attribute,
session_attribute,
channel,
assignee_id,
status,
ai_closure_type,
language,
inbox_id
group_by_attribute
string | null

Attribute key for attribute grouping. Null clears the key. Omit to preserve it when the grouping field stays the same.

shared_with_user_ids
integer[]

User ids the view is shared with. Leave both share lists empty to share the view with the whole organization. Name users and/or teams to restrict it to them, or pass only your own user id to keep it private. Sharing requires the sessions-shared-views:write permission — without it a created view is locked to its creator and the share lists on an update are ignored.

Required range: -9007199254740991 <= x <= 9007199254740991
shared_with_team_ids
string[]

Team ids (from GET /teams) whose members can see the view.

Response

Default Response

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
name
string
required

Name shown in the inbox view picker

filters
object | null
required

The saved filter set. null when advanced is true — the view uses filters this API cannot express.

advanced
boolean
required

True when the view was built in the dashboard with OR/exclude groups or filters outside this API's vocabulary. Its filters read back as null, and updating filters on it REPLACES the whole saved query with the simple set you send.

sort_by
enum<string> | null
required

Sort field the view opens with

Available options:
last_message_at,
created_at,
sla_urgency,
snoozed_until
sort_order
enum<string> | null
required

Sort direction the view opens with

Available options:
asc,
desc
group_by
enum<string> | null
required

Field sessions are grouped by in the list, when the view groups them

Available options:
tags,
contact_attribute,
session_attribute,
channel,
assignee_id,
status,
ai_closure_type,
language,
inbox_id
group_by_attribute
string | null
required

Exact attribute key for contact or session attribute grouping, or null when no key is set.

shared_with_user_ids
integer[]
required

User ids the view is shared with. Empty (with no teams) means the whole org.

Required range: -9007199254740991 <= x <= 9007199254740991
shared_with_team_ids
string[]
required

Team ids the view is shared with. Empty (with no users) means the whole org.

visibility
enum<string>
required
Available options:
organization,
personal,
restricted
created_by_user_id
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
can_edit
boolean
required

Whether the calling user may update this view

can_delete
boolean
required

Whether the calling user may delete this view

created_at
string<date-time>
required
updated_at
string<date-time>
required