Send multiple updates in AtTask PUT request

丶灬走出姿态 提交于 2019-12-10 11:15:05

问题


I am wondering if whether in the API for AtTask there is a method for posting multiple updates in a single URL request.

As an example, I need to update the extRefIDs on 1,000 records. Do I make 1,000 calls to the API (expensive in terms of overhead), or can I send a single request with a JSON or XML payload that contains something like this:

{data {id:1234,extRefID:xx} {id:1235,extrefID:xy} }

etc? Would certainly be less overhead on both systems if there was a method for this. Thanks in advance!


回答1:


You can do bulk updates on objects of the same type by passing in a single JSON array into the "updates" parameter:

PUT .../api/v4.0/task?updates=[{"ID":"abc123","extRefID":"val1"},{"ID":"def456","extRefID":"val2"}]

Hope this help.



来源:https://stackoverflow.com/questions/21833591/send-multiple-updates-in-attask-put-request

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!