Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
dev:web_api:v3:write_requests [2019/03/11 17:59] – [Multi-Object Requests] dstillman | dev:web_api:v3:write_requests [2019/03/11 18:03] – [Multi-Object Requests] dstillman |
---|
POST <userOrGroupPrefix>/collections | POST <userOrGroupPrefix>/collections |
Content-Type: application/json | Content-Type: application/json |
Zotero-Write-Token: <write token> | |
| |
<code>[ | <code>[ |
<code>{ | <code>{ |
"successful": { | "successful": { |
"0": "<item object>", | "0": "<saved object>", |
"2": "<item object>" | "2": "<saved object>" |
}, | }, |
"unchanged": { | "unchanged": { |
}</code> | }</code> |
| |
The keys of the ''successful'', ''unchanged'', and ''failed'' objects are the numeric indexes of the Zotero objects in the uploaded array. The ''Last-Modified-Version'' is the version that has been assigned to any Zotero objects in the ''success'' object --- that is, objects that were modified in this request. | The keys of the ''successful'', ''unchanged'', and ''failed'' objects are the numeric indexes of the Zotero objects in the uploaded array. The ''Last-Modified-Version'' is the version that has been assigned to any Zotero objects in the ''successful'' object --- that is, objects that were modified in this request. |
| |
^ Common responses ^^ | ^ Common responses ^^ |
| ''200 OK'' | The objects were uploaded. | | | ''200 OK'' | The objects were uploaded. | |
| ''409 Conflict'' | The target library is locked. | | | ''409 Conflict'' | The target library is locked. | |
| ''412 Precondition Failed'' | The provided Zotero-Write-Token has already been submitted. | | | ''412 Precondition Failed'' | The version provided in ''If-Unmodified-Since-Version'' is out of date, or the provided ''Zotero-Write-Token'' has already been submitted. | |
| |
| |