Skip to main content
POST
/
api
/
v1
/
operations
Generic database operations
curl --request POST \
  --url https://ai-loop.alpeadria.com/api/v1/operations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "db": "<string>",
  "operation": "get",
  "database": "datalake",
  "filter": {},
  "data": {}
}
'
{
  "message": "Operation successful.",
  "success": true,
  "data": [],
  "modifiedCount": 1
}
Execute CRUD operations on various collections in the database.

Authorizations

Authorization
string
header
required

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

Body

application/json
db
string
required

Collection name

operation
enum<string>
required
Available options:
get,
create,
update,
delete,
getOne
database
enum<string>
Available options:
datalake,
ailoop
filter
object
data
object

Response

200 - application/json

Operation successful.

message
string
success
boolean
data
array
modifiedCount
integer