cURL
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": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sucesso
The response is of type object.
object