我有许多要通过 API 更新的项目字段,这些字段在工作区 UI 中不可见。GET
我通过执行项目 ID来获取这些属性。我需要更新的几个字段是 - previousStatus、categoryID、resourcePoolID、scheduleID、eac 等。请注意我的 extRefID 为空。
我试过这个 -
https://abc.attasksandbox.com/attask/api/project/57--b8477f7?DE:project={previousStatus:EST}&apiKey=759--ux&method=put
和这个
https://xyz.attasksandbox.com/attask/api/project/57d6--f7?DE=previousStatus:EST&apiKey=759--xu&method=put
和这个
https://xyz.attasksandbox.com/attask/api/project/57--f7?updates={"previousStatus":"EST"}&apiKey=7--xuk&method=put
和 JSON 编辑如下
https://xyz.attasksandbox.com/attask/api/project/57--f7&apiKey=7--xuk&method=put
以身体为
{
Project: [
{
previousStatus: "EST"
}
]
}
但似乎没有任何效果。我得到第三次呼叫的响应代码 200,但 previousStatus 仍未更新。对于其他电话,我得到:
"未找到具有主键值的参数 \"previousStatus\""
如果可以实现,任何人都可以提出正确的方法吗?提前致谢!