&引用;响应未通过验证”;SurveyMonkey v3 API中的日期字段
我无法使用v3 API创建成功的有效负载来创建SurveyMonkey响应 CreateResponse[POST]:/responses 我请求的相关部分&引用;响应未通过验证”;SurveyMonkey v3 API中的日期字段,api,surveymonkey,Api,Surveymonkey,我无法使用v3 API创建成功的有效负载来创建SurveyMonkey响应 CreateResponse[POST]:/responses 我请求的相关部分 ... "answers": [ { "row_id": "2375981012", "text": "2019-10-11T12:56:55+00:00" } 错误代码: "message": "Responses failed validation.", "id
...
"answers": [
{
"row_id": "2375981012",
"text": "2019-10-11T12:56:55+00:00"
}
错误代码:
"message": "Responses failed validation.",
"id": "1025",
"name": "Resource Conflict",
"http_status_code": 409
以上格式如所示。我也尝试过dd/mm/yyyy和其他格式,但似乎无法使其正常工作。该响应字段只需要一个日期
{
sorting: null,
family: "datetime",
subtype: "date_only",
required: {
text: "This question requires an answer.",
amount: "1",
type: "exactly"
},
answers: {
rows: [
{
visible: true,
text: "Date / Time",
position: 1,
id: "2375981012"
}
]
},
visible: true,
href: "https://api.surveymonkey.net/v3/surveys/271104269/pages/98907636/questions/359669069",
headings: [
{
heading: "DOB"
}
],
position: 1,
validation: {
sum_text: "",
min: null,
text: "Please enter a valid date.",
sum: null,
max: null,
type: "date_intl"
},
id: "359669069",
forced_ranking: false
}
谢谢你,亚当。我可能遗漏了一些明显的东西,但我仍然无法说出我做错了什么。我看到了与您发布的相同的回复详细信息,但不确定我的回复有什么问题。你能详细说明一下吗?我甚至尝试过代码中的注释:“开放式多/数字、人口统计、日期时间”您能提供完整的负载和URL吗。当我使用此日期格式“2019年10月17日上午11:38”或“2019年10月17日上午11:38”(这是表单所期望的),调查响应是有效的,但survey monkey忽略了日期,因此响应返回为“问题”:[](空数组)。有效负载:或