Modifier un contact
URL de l'API
URL utilisée pour envoyer les requêtes HTTP :
Note
Si la requête n'atteint pas sa destination, renvoyez-la au serveur de secours backup1.bulkgate.com.
Méthodes HTTP prises en charge
POST-application/json
Tableau des paramètres
| NOM DU PARAMÈTRE | VALEUR | OBLIGATOIRE | VALEUR PAR DÉFAUT |
|---|---|---|---|
| application_id | Application ID | Oui | - |
| application_token | Jeton d'application | Oui | - |
| phone_number | Numéro de téléphone du contact à modifier. | Oui | - |
| data | Informations du contact | Oui | Objet data |
| category | Le carnet d'adresses à utiliser. Par défaut, le carnet principal du compte. | Non | main |
Note
Un champ omis reste inchangé — le schéma le remplit avec -do-not-modify-. Pour vider un champ, envoyez une chaîne vide.
Objet data
| NOM DU PARAMÈTRE | VALEUR | OBLIGATOIRE | VALEUR PAR DÉFAUT |
|---|---|---|---|
| type | Personne/Entreprise | Non | - |
| phone_mobile | Numéro de téléphone principal | Non | - |
| title_before | Titre avant le nom | Non | - |
| first_name | Prénom | Non | - |
| last_name | Nom | Non | - |
| title_after | Titre après le nom | Non | - |
| gender | male / female / transgender / agender / non_binary / unknown | Non | unknown |
| company_name | Nom de votre entreprise | Non | - |
| Non | - | ||
| url | URL | Non | - |
| street1 | Adresse (ligne 1) | Non | - |
| street2 | Adresse (ligne 2) | Non | - |
| city | Ville | Non | - |
| zip | Code postal | Non | - |
| state | État / région | Non | - |
| country | Code pays au format ISO 3166-1 alpha-2. | Non | null |
| company_number | Numéro d'identification de l'entreprise | Non | - |
| company_vat | Numéro de TVA de l'entreprise | Non | - |
| note | Note | Non | - |
| custom_field_0 | Champ personnalisé | Non | - |
| custom_field_1 | Champ personnalisé | Non | - |
| custom_field_2 | Champ personnalisé | Non | - |
| custom_field_3 | Champ personnalisé | Non | - |
| custom_field_4 | Champ personnalisé | Non | - |
| custom_field_5 | Champ personnalisé | Non | - |
| custom_field_6 | Champ personnalisé | Non | - |
| custom_field_7 | Champ personnalisé | Non | - |
| custom_field_8 | Champ personnalisé | Non | - |
| custom_field_9 | Champ personnalisé | Non | - |
Exemple de requête
Réponse
En cas de succès :
En cas d'erreur :
Où :
- type et error (description de l'erreur) figurent dans le tableau des types d'erreurs
- code représente le code d'erreur HTTP
- detail contient des informations complémentaires sur l'erreur
Cette page vous a-t-elle été utile ?
Merci pour votre retour.