Skip to main content
PUT
/
api
/
v1
/
datasource
/
{datasource_id}
/
{datasourcefile_id}
/
file
Add Datasourcefile
curl --request PUT \
  --url 'https://api.example.com/api/v1/datasource/{datasource_id}/{datasourcefile_id}/file?api_key=' \
  --header 'Content-Type: multipart/form-data' \
  --form datasourcefile_file='@example-file'
{
  "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"
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

datasource_id
string<uuid>
required
datasourcefile_id
string<uuid>
required

Body

multipart/form-data
datasourcefile_file
file
required

Response

Successful Response

message
string | null
default:Data created successfully
meta
Meta · object
data
IDataSourceFileRead · object