Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
dev:web_api:v2:write_requests [2013/03/03 16:51] – [Updating Multiple Objects] dstillman | dev:web_api:v2:write_requests [2013/11/25 14:13] – clarify multi-object write limit dstillman |
---|
| |
See [[#creating_multiple_objects|Creating Multiple Objects]] for more information on the response format. | See [[#creating_multiple_objects|Creating Multiple Objects]] for more information on the response format. |
| |
==== Creating Multiple Items ==== | ==== Creating Multiple Items ==== |
| |
See [[#creating_multiple_objects|Creating Multiple Objects]]. | See [[#creating_multiple_objects|Creating Multiple Objects]]. |
| |
==== Updating an Existing Item ==== | ==== Updating an Existing Item ==== |
| |
==== Updating Multiple Items ==== | ==== Updating Multiple Items ==== |
| |
See the [[#updating_multiple_objects|Updating Multiple Objects]]. | See [[#updating_multiple_objects|Updating Multiple Objects]]. |
==== Deleting an Item ==== | ==== Deleting an Item ==== |
| |
==== Creating Multiple Objects ==== | ==== Creating Multiple Objects ==== |
| |
Multiple collections, saved searches, and items can be created in the same requests by including multiple objects in the ''collections'', ''searches'', and ''items'' properties: | Up to 50 collections, saved searches, or items can be created in a single request by including multiple objects in the ''collections'', ''searches'', or ''items'' property: |
| |
POST <userOrGroupPrefix>/collections | POST <userOrGroupPrefix>/collections |
| |
=== Updating Multiple Objects === | === Updating Multiple Objects === |
| |
| Up to 50 collections, saved searches, or items can be updated in a single request. |
| |
Follow the instructions in [[#creating_multiple_objects|Creating Multiple Objects]], but add an ''itemKey'', ''collectionKey'', or ''searchKey'' property to each object. Pass the current library version as ''If-Unmodified-Since-Version'', replacing ''Zotero-Write-Token'', or include an ''itemVersion'', ''collectionVersion'', or ''searchVersion'' in each object. | Follow the instructions in [[#creating_multiple_objects|Creating Multiple Objects]], but add an ''itemKey'', ''collectionKey'', or ''searchKey'' property to each object. Pass the current library version as ''If-Unmodified-Since-Version'', replacing ''Zotero-Write-Token'', or include an ''itemVersion'', ''collectionVersion'', or ''searchVersion'' in each object. |