Propriétés personnalisées

Vos propres champs sur les contacts, entreprises et propositions.

Valeurs des exemples

Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.

GET/v1/custom-properties

Les propriétés personnalisées des contacts, entreprises et propositions.

ListerEn cas de succès : 200.Permission : Lire.

Exemple
curl -X GET "https://api.firmado.app/v1/custom-properties" \
  -H "X-Api-Key: fmd_..."

GET/v1/custom-properties/{entity}

Les propriétés personnalisées d’un type d’enregistrement.

Voir unEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

ChampTypeObligatoireNotes
entitystringOui
Exemple
curl -X GET "https://api.firmado.app/v1/custom-properties/{entity}" \
  -H "X-Api-Key: fmd_..."

POST/v1/custom-properties/{entity}

Crée une propriété personnalisée : son type, ses options et où elle s’affiche.

Créer/{entity}En cas de succès : 201.Permission : Créer.

Paramètres de chemin

ChampTypeObligatoireNotes
entitystringOui

Corps

ChampTypeObligatoireNotes
keystringOuipattern ^[a-z][a-z0-9_]{0,49}$
labelstringOuimin length 1 · max length 100
descriptionstring | nullNon
type"text" | "number" | "boolean" | "date" | "select" | "multiselect" | "url"Oui
optionsarray of objectNonmax items 100
options[].valuestringOuimin length 1 · max length 100
options[].labelstringOuimin length 1 · max length 100
requiredbooleanNondefault false
positionintegerNonmin 0 · default 0

Réponse

16 champs
ChampTypeToujours présent
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionnull dans les exemplesOui
entityTypestringOui
idstring (uuid)Oui
keystringOui
labelstringOui
optionsarray of objectOui
options[].labelstringOui
options[].valuestringOui
organizationIdstring (uuid)Oui
positionintegerOui
requiredbooleanOui
typestringOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
Exemple
curl -X POST "https://api.firmado.app/v1/custom-properties/{entity}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "key": "…",
  "label": "…",
  "type": "text",
  "description": "…"
}'

Réponse (201), avec des valeurs d’exemple :

{
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": null,
  "entityType": "…",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "key": "…",
  "label": "…",
  "options": [
    {
      "label": "…",
      "value": "…"
    }
  ],
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "position": 1,
  "required": true,
  "type": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

DELETE/v1/custom-properties/{entity}/{id}

Supprime une propriété personnalisée et ses valeurs.

Supprimer/{entity}/{id}En cas de succès : 204.Permission : Supprimer.

Paramètres de chemin

ChampTypeObligatoireNotes
entitystringOui
idstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/custom-properties/{entity}/{id}" \
  -H "X-Api-Key: fmd_..."

PATCH/v1/custom-properties/{entity}/{id}

Modifie le libellé, les options ou l’ordre d’une propriété personnalisée.

Modifier/{entity}/{id}En cas de succès : 200.Permission : Modifier.

Paramètres de chemin

ChampTypeObligatoireNotes
entitystringOui
idstringOui

Corps

ChampTypeObligatoireNotes
labelstringNonmin length 1 · max length 100
descriptionstring | nullNon
optionsarray of objectNonmax items 100
options[].valuestringOuimin length 1 · max length 100
options[].labelstringOuimin length 1 · max length 100
requiredbooleanNondefault false
positionintegerNonmin 0 · default 0
Exemple
curl -X PATCH "https://api.firmado.app/v1/custom-properties/{entity}/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "label": "…",
  "description": "…",
  "options": [
    {
      "value": "…",
      "label": "…"
    }
  ],
  "required": false
}'

Événements de webhook

Les changements de cette fonctionnalité que les webhooks peuvent envoyer.

  • custom_property.createdCréer
  • custom_property.updatedModifier
  • custom_property.deletedSupprimer