Parse platform 解析批量上传API,错误代码107是什么意思?
为什么我不能使用解析批处理批量导入API添加对象Parse platform 解析批量上传API,错误代码107是什么意思?,parse-platform,Parse Platform,为什么我不能使用解析批处理批量导入API添加对象 curl -X POST \ -H "X-Parse-Application-Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ -H "X-Parse-REST-API-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ -H "Content-Type: application/json" \ -d '{ "requests":[ {
curl -X POST \
-H "X-Parse-Application-Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "X-Parse-REST-API-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-H "Content-Type: application/json" \
-d '{
"requests":[
{
"method":"POST",
"path":"1/classes/Store",
"body":{
"storeNumber":3466,
"storeLocation":{
"__type":"GeoPoint",
"latitude":-88.481369,
"longitude":44.263837
},
"storeAddress":"4733 W. GRANDE MARKET DR. GRAND CHUTE WI 54913 US"
}
},
...
{
"method":"POST",
"path":"1/classes/Store",
"body":{
"storeNumber":119,
"storeLocation":{
"__type":"GeoPoint",
"latitude":-122.171134,
"longitude":37.444756
},
"storeAddress":"165 STANFORD SHOPPING CTR PALO ALTO CA 94304-1409 US"
}
}
]
}' \
https://api.parse.com/1/batch
{“代码”:107,“错误”:“批处理操作中不支持将方法“POST”发送到“1/classes/Store”。}
我创建了一个具有匹配列名/类型的“存储”对象,但无法使用批处理API创建任何行。从文档中看,我猜这是因为您的
路径无效
您需要在前面加一个“/”,因此/1/classes/Store
而不是1/classes/Store