cURL
curl --request POST \ --url 'https://api.example.com/api/v1/datasource/{datasource_id}/file?api_key=' \ --header 'Content-Type: multipart/form-data' \ --form datasourcefile_file='@example-file' \ --form 'attributes={}'
{ "message": "Data created successfully", "meta": {}, "data": { "ds_type": "pdf", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "attributes": {}, "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
add a new file to a datasource
Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.
in-
pdf
doc
http
tool
text_blob
image
text_image
Successful Response
Show child attributes
Was this page helpful?