Library

Remove sources from a collection

Changed on

Removes sources from a collection you own or can edit, whichever member added them. A member's own source stays in their library; a shared collection's own paper goes to the collection's trash for 30 days. Send the ids in a JSON body. removedCount is the number removed; an id that is not in the collection is skipped.

Example

curl -X DELETE 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"]}'
delete/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 memberships were removed.

removedCountinteger required

Sources removed; ids not in the collection are skipped. A member's own source stays in their library. A shared collection's own paper moves to the collection's trash for 30 days.

Changes