POST
/
data
/
file
curl --request POST \
  --url https://{capsule-id}.sid.ai/data/file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'metadata=<string>' \
  --form time_authored=2023-11-07T05:31:56Z \
  --form 'uri=<string>'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>. API keys can be generated in the dashboard.

Body

multipart/form-data
file
file
required

The file to be added to the capsule

metadata
string

JSON string of metadata associated with the file

time_authored
string

The time when the file was originally authored (RFC3339 format)

uri
string

URI associated with the file