Query Workers
Save query worker
Save a query for a user for a fabric.
post/_fabric/{fabric}/_api/restql
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
Fabric name for which to save query.
Request body
Example request
{
"query": {
"name": "workerName",
"parameter": {},
"value": "for u in testCollection return u",
"type": "c8ql"
}
}Response
Successfully saved query.
Example response
{
"code": 200,
"result": {
"userid": "testuser",
"tenant": "_mm",
"fabric": "_system",
"name": "testQueryName",
"value": "for u in testCollection return u",
"_key": "testuser._system.testQueryName",
"type": "c8ql"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.