简体   繁体   English

Eloqua批量REST API提供序列化错误

[英]Eloqua bulk REST API gives serialization error

I am trying to make bulk REST API call to import data to Eloqua. 我正在尝试进行批量REST API调用以将数据导入Eloqua。 I am able to make call to GET, But POST gives me "400- There was a Serialization Error". 我可以打电话给GET,但是POST给了我“400-有一个序列化错误”。

This is first step to get response for creating import definition from Eloqua Bulk REST. 这是从Eloqua Bulk REST创建导入定义的响应的第一步。

URL: /api/bulk/2.0/contacts/imports

Headers:
Authorization: valid oAuth2 token
Content-Type: application/json

Body: 身体:

{  
   "name": "AppSource Test",
   "fields": {  
      "firstName": "{{Contact.Field(C_FirstName)}}",
      "lastName": "{{Contact.Field(C_LastName)}}",
      "emailAddress": "{{Contact.Field(C_EmailAddress)}}"
   },
   "identifierFieldName": "emailAddress"
}

Documentation also doesn't have details about this. 文档也没有关于此的详细信息。

Am I missing something? 我错过了什么吗?

Change Body content type to "raw" 将Body内容类型更改为“raw”

Explanation: Eloqua expects the data it receives be in "raw" format. 说明:Eloqua希望它收到的数据是“原始”格式。 Although Header says Content type json, Setting Body as "raw" works. 虽然Header说内容类型为json,但设置Body为“raw”有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM