Queries (File)
POST
/api/collections/data/fetch/queryLast modified:Â 5 months ago
Request
Body Params application/json
collection
stringÂ
required
query
array [object {3}]Â
required
field
stringÂ
required
operator
stringÂ
required
value
stringÂ
required
format
stringÂ
required
The output format. It can be a JSON
, file
and stream
.
compounding
stringÂ
optional
orderType
stringÂ
optional
orderBy
stringÂ
optional
limit
integerÂ
optional
startAfter
integerÂ
optional
Example
{
"collection": "datalogs",
"query": [
{
"field": "processingTime",
"operator": ">=",
"value": "1000"
},
{
"field": "level",
"operator": "==",
"value": "ERROR"
}
],
"compounding": "OR",
"orderType": "DESC",
"orderBy": "docCreatedAt",
"limit": 100,
"startAfter": 0,
"format": "file"
}
Request samples
Responses
Success(200)
Bad Request(400)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
data
objectÂ
required
status
stringÂ
required
message
stringÂ
required
data
objectÂ
required
collection
stringÂ
required
processingTime
numberÂ
required
processingId
stringÂ
required
Example
{
"data": {
"status": "success",
"message": "File uploaded successfully",
"data": {
"url": "https://storage.googleapis.com/1fe0a9ac-617a-42e4-a376-37808b98fc99-worqhat/data/datalogs-1721761263539.csv?GoogleAccessId=cloud-storage-upload%40worqhat-dev.iam.gserviceaccount.com&Expires=1721761445&Signature=dYzMIpDXSGnF%2BUJScIvFdpl8Q%2BD%2BoDMsyPc9sy9unmu2j%2FfnTr%2ByR6PIM9kyt3cfHemgXSVWOJxi%2BfzsI4Lu5jRzFxdwZ0F%2FMqzVbylodmgMOTKpFxO4CZjX0%2FqVtCJzuDjhjljj%2F4Qn5GPzb86xlfyH1GnqKvtWFurJvPpxuE%2Bg86z9eqsmnp7ChyuEsmCGwrUfuHQXO0UvVu7VCoHmlM7hu7Y5zUM8ZovKJRpJY4TG%2F75X92OG4J2w0G1EduNYB99SfCxrDJttwkro6uPhTdstU7yB%2BWB8LHRbRNwceBU4o7CQZPDtCq3AdkpRWoW%2F02SwZwZNx73rEv1CntbvmQ%3D%3D"
}
},
"collection": "datalogs",
"processingTime": 4513.544458,
"processingId": "6723bfb6-5a8d-4ba3-a94a-5296cec5f51d"
}
Last modified: 5 months ago