2

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!

4

1 回答 1

1

您可以通过将单个 JSON 数组传入“updates”参数来对相同类型的对象进行批量更新:

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

希望这有帮助。

于 2014-02-18T04:58:06.397 回答