POST
/
datasources
curl --request POST \
  --url https://dash.superagentes.ai/api/datasources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'fileName=<string>' \
  --form type=file \
  --form 'datastoreId=<string>' \
  --form 'custom_id=<string>'
{
  "id": "<string>",
  "type": "<string>",
  "name": "<string>",
  "status": "unsynched",
  "groupId": "<string>",
  "updatedAt": "2023-12-25",
  "createdAt": "2023-12-25",
  "lastSynch": "2023-12-25",
  "config": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

file
file
required
type
enum<string>
required
Available options:
file
datastoreId
string
required
fileName
string
custom_id
string

Útil para configurações multi-tenant

Response

200
application/json
Sucesso
id
string
type
string
name
string
status
enum<string>
Available options:
unsynched,
pending,
running,
synched,
error,
usage_limit_reached
groupId
string
updatedAt
string
createdAt
string
lastSynch
string
config
object