Skip to main content
PATCH
Update custom company attribute
Scope requis : CRM_WRITE
Cet endpoint effectue une mise à jour partielle. Seuls les champs envoyés sont modifiés. key et type ne peuvent pas être modifiés.

Champs du body

Renommer des options

Les clés d’options restent stables. Pour renommer une option, envoyez sa key actuelle avec le nouveau label. Une option envoyée sans key correspondante est considérée comme nouvelle et reçoit une clé dérivée de son label. Les options absentes de la liste sont supprimées.

Attributs synchronisés depuis un CRM

Un attribut dont la source n’est pas allo est géré par votre intégration CRM. Seuls prompt, should_prompt_override et is_visible peuvent être modifiés. Envoyer label ou options renvoie 409 ATTRIBUTE_MANAGED_BY_INTEGRATION.

Réponse

Renvoie 200 avec l’attribut mis à jour, dans le même format que Lister les attributs d’entreprise.

Erreurs

Autorisations

Authorization
string
header
requis

Paramètres de chemin

key
string
requis

Attribute key, as returned by the list endpoint

Exemple:

"industry_segment"

Corps

application/json

All fields are optional

label
string

New display name

options
object[]

Replaces the full option list. DROPDOWN attributes only. Send an option's current key to keep it when renaming its label.

prompt
string | null

Instruction the AI CRM Manager follows to fill this attribute from calls. A blank value clears it.

Exemple:

"Pick the segment that matches the company size mentioned on the call."

should_prompt_override
boolean

Whether the AI may overwrite a value that is already set

is_visible
boolean

Show or hide the attribute in the Allo apps

Réponse

The updated attribute

data
object

A custom attribute on companies