Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:web_api:v2:file_upload [2013/02/09 15:49] – created dstillman | dev:web_api:v2:file_upload [2017/11/27 04:18] (current) – Remove Zotero 5 warning bwiernik | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Zotero | + | ====== Zotero |
- | In addition to providing ways to [[dev: | + | **This is version 2 of the Zotero Web API. For new development, |
+ | |||
+ | In addition to providing ways to [[read_requests|read]] and [[write_requests|write]] online library data, the Zotero | ||
The exact process depends on whether you are adding a new attachment file or modifying an existing one and whether you are performing a full upload or uploading a binary diff. | The exact process depends on whether you are adding a new attachment file or modifying an existing one and whether you are performing a full upload or uploading a binary diff. | ||
Line 28: | Line 30: | ||
==== ii. Create child attachment item ==== | ==== ii. Create child attachment item ==== | ||
- | POST / | + | POST / |
Content-Type: | Content-Type: | ||
- | | + | Zotero-Write-Token: |
<code javascript> | <code javascript> | ||
Line 36: | Line 38: | ||
{ | { | ||
" | " | ||
+ | " | ||
" | " | ||
" | " | ||
Line 53: | Line 56: | ||
'' | '' | ||
- | Child attachments can also be created along with new top-level items by including the attachment object in the '' | + | Top-level attachments can be created by excluding the '' |
- | + | ||
- | Top-level attachments can be created by POSTing to '' | + | |
===== 1b) Modify an existing attachment ===== | ===== 1b) Modify an existing attachment ===== |