我正在通过AJAX进行以下API调用
$.ajax({
url: "https://xxxxxxxxxx",
type: "POST",
data: {"api_key": "xxxxxxxxxxxxxxxxxxxxxxx",
"attributes" : [{"external_id" : "3610", "quality_score" : "2"}]
},
dataType:'application/json',
success: function (response) {
console.log(response);
},
error: function(error){
console.log("Something went wrong", error);
}
});
}
作为回报,我得到以下错误
responseText: "{"message":"'attributes' must be an array"}"
有人知道我在这里做错了吗
谢谢。