CRM
Deutsch
cURL
curl --request POST \ --url https://api.hubapi.com/crm/v3/imports/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'importRequest=<string>' \ --form files=@example-file
{ "importTemplate": { "templateType": "admin_defined", "templateId": 123 }, "createdAt": "2023-11-07T05:31:56Z", "metadata": { "counters": "{\"TOTAL_ROWS\":2,\"CREATED_OBJECTS\":1,\"UPDATED_OBJECTS\":1,\"UNIQUE_OBJECTS_WRITTEN\":2,\"PROPERTY_VALUES_EMITTED\":2}", "fileIds": "[\"3579849\"]", "objectLists": "[{\"listId\":\"3\",\"objectType\":\"contacts\"}]" }, "importRequestJson": {}, "importSource": "API", "importName": "<string>", "state": "DONE", "id": "1471", "optOutImport": false, "mappedObjectTypeIds": [ "<string>" ], "updatedAt": "2023-11-07T05:31:56Z" }
指定されたファイルリソースのデータのインポートを開始します。この操作により、該当するファイルがアップロードされ、インポート リクエスト オブジェクトを使用してファイルの行がオブジェクトに変換されます。
crm.import
The access token received from the authorization server in the OAuth 2.0 flow.
successful operation
The response is of type object.
object