Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:web_api:v3:write_requests [2018/12/28 02:55]
dstillman [JSON Object Data]
dev:web_api:v3:write_requests [2019/03/11 18:03] (current)
dstillman [Multi-Object Requests]
Line 401: Line 401:
   POST <​userOrGroupPrefix>/​collections   POST <​userOrGroupPrefix>/​collections
   Content-Type:​ application/​json   Content-Type:​ application/​json
-  Zotero-Write-Token:​ <write token> 
  
 <​code>​[ <​code>​[
Line 421: Line 420:
  
 <​code>​{ <​code>​{
-  "success": { +  "successful": { 
-    "​0":​ "<objectKey>",​ +    "​0":​ "<saved object>",​ 
-    "​2":​ "<objectKey>"+    "​2":​ "<saved object>"
   },   },
   "​unchanged":​ {   "​unchanged":​ {
Line 442: Line 441:
 }</​code>​ }</​code>​
  
-The keys of the ''​success'',​ ''​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. |
  
  
dev/web_api/v3/write_requests.1545983741.txt.gz · Last modified: 2018/12/28 02:55 by dstillman