Skip to content

create_saved_query

Create a public, non-aggregate consumer query with any joins over public fields.

It binds server-bound current_user_id. See https://docs.merofoundry.app/recipes/row-level-security for the accepted QueryAST shape and the ownership join.

{
"additionalProperties": false,
"properties": {
"application_id": {
"title": "Application Id",
"type": "string"
},
"body": {
"additionalProperties": true,
"title": "Body",
"type": "object"
}
},
"required": [
"application_id",
"body"
],
"title": "create_saved_queryArguments",
"type": "object"
}
{
"properties": {
"applicationId": {
"format": "uuid",
"title": "Applicationid",
"type": "string"
},
"ast": {
"additionalProperties": true,
"title": "Ast",
"type": "object"
},
"builderOnly": {
"default": false,
"title": "Builderonly",
"type": "boolean"
},
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"createdBy": {
"format": "uuid",
"title": "Createdby",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"editableText": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Editabletext"
},
"id": {
"format": "uuid",
"title": "Id",
"type": "string"
},
"isPublic": {
"default": false,
"title": "Ispublic",
"type": "boolean"
},
"name": {
"title": "Name",
"type": "string"
},
"rawText": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rawtext"
},
"tenantId": {
"format": "uuid",
"title": "Tenantid",
"type": "string"
},
"updatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"workspaceId": {
"format": "uuid",
"title": "Workspaceid",
"type": "string"
}
},
"required": [
"id",
"tenantId",
"workspaceId",
"applicationId",
"name",
"ast",
"createdBy"
],
"title": "SavedQueryResponse",
"type": "object"
}