Query Workers

Update query worker

Update a saved query for a fabric.

put/_fabric/{fabric}/_api/restql/{name}

Request

Path parameters

fabricstring string required

Fabric name for which to update a query.

namestring string required

Query name to update.

Request body

Example request

{
  "query": {
    "parameter": {},
    "value": "for u in testCollection return u",
    "type": "c8ql"
  }
}

Response

Sucessfully updated the query.

codeinteger

HTTP response code.

errorboolean

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

Example response

{
  "code": 200,
  "result": {
    "value": "for u in testCollection return u",
    "_key": "testuser._system.testQueryName"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.