curl --request POST \
--url https://api.hubapi.com/crm/v3/imports/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form files='@example-file' \
--form 'importRequest=<string>'{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mappedObjectTypeIds": [
"<string>"
],
"metadata": {
"counters": {},
"fileIds": [
"<string>"
],
"objectLists": [
{
"listId": "<string>",
"objectType": "<string>"
}
]
},
"optOutImport": true,
"state": "CANCELED",
"updatedAt": "2023-11-07T05:31:56Z",
"importName": "<string>",
"importRequestJson": {},
"importSource": "API",
"importTemplate": {
"templateId": 123,
"templateType": "admin_defined"
}
}Commence l’importation des données à partir des ressources de fichiers spécifiées. Cela télécharge le fichier correspondant et utilise l’objet de demande d’importation pour convertir les lignes des fichiers en objets.
curl --request POST \
--url https://api.hubapi.com/crm/v3/imports/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form files='@example-file' \
--form 'importRequest=<string>'{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mappedObjectTypeIds": [
"<string>"
],
"metadata": {
"counters": {},
"fileIds": [
"<string>"
],
"objectLists": [
{
"listId": "<string>",
"objectType": "<string>"
}
]
},
"optOutImport": true,
"state": "CANCELED",
"updatedAt": "2023-11-07T05:31:56Z",
"importName": "<string>",
"importRequestJson": {},
"importSource": "API",
"importTemplate": {
"templateId": 123,
"templateType": "admin_defined"
}
}Produits pris en charge
Portées requises
The access token received from the authorization server in the OAuth 2.0 flow.
successful operation
L'horodatage du moment où l'objet a été créé, au format ISO 8601.
L'identifiant unique pour cet import.
Show child attributes
Si l'importation est une liste de personnes qui ne doivent plus recevoir des e-mails ou non.
Le statut de l'importation.
CANCELED, DEFERRED, DONE, FAILED, PROCESSING, REVERTED, STARTED L'horodatage de la dernière mise à jour de la fiche d'informations de l'import, au format ISO 8601 instantané.
Le nom fourni par l'utilisateur pour cet import.
La configuration complète de la demande d'import sous forme d'objet JSON.
Indique où/comment l'import a été lancé.
API, CRM_UI, IMPORT, MOBILE_ANDROID, MOBILE_IOS, SALESFORCE Show child attributes