Passer au contenu principal
PATCH
Update contact view
Scope requis : CRM_WRITE
Cet endpoint effectue une mise à jour partielle. Seuls les champs envoyés sont modifiés. Envoyez filters: [] pour effacer les filtres.

Champs du corps

Modifier une vue d’équipe exige d’en être le propriétaire ou ADMIN ou MANAGER de l’équipe.

Réponse

Renvoie 200 avec la vue mise à jour, au même format que Obtenir une vue.

Erreurs

Autorisations

Authorization
string
header
requis

Paramètres de chemin

id
string
requis

Public ID of the view, as returned by the list endpoint

Exemple:

"cvw_2abc"

Corps

application/json

All fields are optional. An omitted field is unchanged. filters: [] clears the filters.

name
string

New name. Must not be blank when sent

Maximum string length: 255
Pattern: \S
Exemple:

"Hot leads"

filters
object[]

Conditions combined with AND. At most 50

Maximum array length: 50
sort
object[]

Up to 2 entries. Sortable built-in fields: name, company, job_title, website, created_at, updated_at, last_activity. A sortable custom field key from GET /v2/api/crm/attributes also works

Maximum array length: 2
owner_type
enum<string>

USER is private to the API key's user. TEAM is shared with the user's team; it returns 400 USER_HAS_NO_TEAM when the user has no team.

Options disponibles:
USER,
TEAM
Exemple:

"USER"

Réponse

The updated view

data
object

A saved view: a named filter and sort over people. Views created in the Allo app and with the API are the same objects.