Library

Add sources to a collection

Changed on

Adds 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"]}'
post/library/collections/{collectionId}/sources

Request

  • Base URL
    https://elicit.com/api/v2
  • URL
    https://elicit.com/api/v2/library/collections/{collectionId}/sources
  • Auth
    HTTP bearer

Path parameters

collectionIdstring uuid required

Request body

sourceIdsstring[] required

Ids of your library sources.

Response

How many sources were newly added.

addedCountinteger required

Sources newly added; sources already in the collection are skipped.

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

      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