Skip to main content
POST
/
datasources
Criar Fonte de Conteúdo
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>' \
  --form file=@example-file
{
  "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

Sucesso

id
string
type
string
name
string
status
enum<string>
Available options:
unsynched,
pending,
running,
synched,
error,
usage_limit_reached
groupId
string
updatedAt
string<date>
createdAt
string<date>
lastSynch
string<date>
config
object
I