使用任务 api,如何更新任务

Using the attask api, how can update a task

使用 Attask api,如何通过其余 api 添加更新?根据嵌套对象的 PUT 文档,更新任务看起来将完全替换所有更新,并且在 /api/update 上执行 post 似乎不起作用:这是我到目前为止尝试过的使用 Powershell 进行测试 $url = "https:///attask/api/update?sessionID=$($session.data.sessionID)&message=Test Message from api&refObjID=56e9b1d100741c6eb3cab7df95269ba7&objCode=UPDATE&updateObjCode=NOTE" $result = Invoke-RestMethod -Uri $url -方法"POST" 结果是: 调用-RestMethod:{"error":{"class":"java.lang.UnsupportedOperationException","message":null}}

而不是更新,post改为注释 - 例如

$url = "https://lockton.attask-ondemand.com/attask/api/note?sessionID=$($session.data.sessionID)&updates={noteText:'Test Message from api',objID:'56e9b1d100741c6eb3cab7df95269ba7',noteObjCode:'TASK'}"

$postResult = Invoke-RestMethod -Uri $url -Method "POST"

$postResult