Passer au contenu principal
POST
Create contact view
Scope requis : CRM_WRITE

Champs du corps

Voir Filtres pour les champs et opérateurs utilisables.

Réponse

Renvoie 201 avec la vue.

Erreurs

Autorisations

Authorization
string
header
requis

Corps

application/json
name
string
requis
Required string length: 1 - 255
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>
défaut:USER

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 view that was created

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.