Skip to main content
POST
/
api
/
v1
/
datalake
/
{source}
/
databases
/
{db}
/
documents
Create document
curl --request POST \
  --url https://ai-loop.alpeadria.com/api/v1/datalake/{source}/databases/{db}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "_id": "60d5ecb31f3f4a0015f8a0a1",
  "field1": "value1",
  "field2": "value2"
}
Add a new document to a specific data lake database.

Authorizations

Authorization
string
header
required

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

Path Parameters

source
string
required
db
string
required

Body

application/json

The body is of type object.

Response

201 - application/json

Document created successfully.

The response is of type object.