【发布时间】:2018-11-20 16:11:34
【问题描述】:
我正在使用邮递员来调用 SuiteCRM REST API。
我尝试调用此端点
PATCH http://{{suitecrm-url}}/Api/V8/module
我已将此有效负载添加到正文中(内容类型:应用程序/Json):
{
"data": {
"type": "Accounts",
"id": "3a3ae651-d509-2508-7dc4-5be2e51cc96b",
"attributes": {
"name": "name with space"
}
}
}
当请求被执行时,SuiteCRM 给出这个响应:
{
"errors": {
"status": 400,
"title": null,
"detail": "The option \"attributes\" with value array is invalid."
}
}
我发现问题出在值中的空格:当我尝试使用值“namewithspace”时,它起作用了。
有人知道如何解决这个问题吗?
提前致谢
【问题讨论】: