Query Workers

Save query worker

Save a query for a user for a fabric.

post/_fabric/{fabric}/_api/restql

Request

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.

codeinteger

HTTP response code.

errorboolean

Flag if there is an error in response. False for this response.

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.