Library

Create a collection

Changed on

Creates an empty collection. Names are not unique. Store the returned id.

Example

curl -X POST https://elicit.com/api/v2/library/collections \
  -H "Authorization: Bearer elk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name":"GLP-1 cardiovascular trials"}'
post/library/collections

Request

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

Request body

namestring required
descriptionstring

Response

The new collection.

idstring uuid required
namestring required
descriptionstring required
role'owner' | 'writer' | 'reader' required

Your access level. A reader can view the collection. A writer can also add and remove sources and edit the name and description. An owner can also delete the collection and change who it is shared with.

kind'personal' | 'group' required

personal: never shared; lists your own sources. group: has been shared at least once; owns copies of its sources, and stays a group collection.

sharedVia'direct' | 'organization'

direct if the owner shared the collection with you. organization if the owner shared it with your organization. Absent on your own collections.

sourceCountinteger required

Changes