Add sources to a collection
Changed onAdds up to 500 of your sources to a collection you own or can edit. addedCount is the number added.
A source is skipped if it is already in the collection, or if a paper in the collection is the same paper. Papers match by Elicit id, DOI, title, or identical PDF. Each skipped source appears in duplicates with duplicateOf, the id of the paper already in the collection (its own id when it was already a member). Each added source appears in added with collectionSourceId, the id the collection holds for it: in a group collection the collection gets its own copy of each added source, under its own id, and your source stays yours.
If any id is not a source you own, the request returns 404 and adds nothing.
Example
curl -X POST https://elicit.com/api/v2/library/collections/{collectionId}/sources \
-H "Authorization: Bearer elk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"sourceIds":["8e2d4d52-3b8a-4f6c-9e1a-2c7b6d5e4f30"]}'
Request
- Base URLhttps://elicit.com/api/v2
- URLhttps://elicit.com/api/v2/library/collections/{collectionId}/sources
- AuthHTTP bearer
Path parameters
Request body
Response
How many sources were newly added.
Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info