Query Workers
Update query worker
Update a saved query for a fabric.
put/_fabric/{fabric}/_api/restql/{name}
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 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.
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.