Aller au contenu

create_client

Crée une fiche client. SIREN obligatoire (9 à 14 chiffres). Email recommandé pour l’envoi.

  • Permission requise : client:create
  • Type : écriture

Paramètres

NomTypeRequisContrainteDescription
name string oui min 1 car.
siren string oui min 1 car.
email string non email
address string non
postalcode string non
city string non
province string non

Exemple d'appel

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_client",
    "arguments": {
      "name": "<string>",
      "siren": "<string>",
      "email": "<string>",
      "address": "<string>",
      "postalcode": "<string>",
      "city": "<string>",
      "province": "<string>"
    }
  }
}

Exemple de réponse

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{ ...résultat JSON... }"
      }
    ]
  }
}