Collections

Upload a file to a collection

Changed on

The user named by email must be a member of the Collection, and the file is attributed to them. The type is identified from the bytes, not the name or a declared content type.

post/api_partner/collections/{collection_slug}/files

Request

  • Base URL
    https://api.scite.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.scite.ai/api_partner/collections/{collection_slug}/files
  • Auth
    HTTP bearer

Path parameters

collection_slugstring required

Query parameters

emailstring email required

Headers

authorizationstring

Set to Bearer <token> to pass token for authorization.

Request body multipart/form-data

filestring binary required

Response

Successful Response

idinteger required
dashboardIdinteger required
targetType'COLLECTION'
filenamestring required
contentTypestring required
byteSizeinteger required
createdByEmailstring nullable
createdByNamestring nullable
createdAtstring date-time required
lastUpdatedstring date-time required
suspendedboolean

Changes