{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/duneanalytics-com/main/json-schema/duneanalytics-com-post-v1-query-request-schema.json",
  "title": "PostV1QueryRequest",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/duneanalytics-com-openapi-generated.yml#/components/schemas/PostV1QueryRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the created query."
    },
    "query_sql": {
      "type": "string",
      "description": "The SQL of the query."
    },
    "description": {
      "type": "string",
      "description": "The description of the created query."
    },
    "is_private": {
      "type": "boolean",
      "description": "Indicates if the query is private, meaning that only the team or, in case of personal queries, the user that created it can see it."
    },
    "is_temp": {
      "type": "boolean",
      "description": "Indicates if the query is temporary (unsaved). Temporary queries can be executed but won't appear in the library."
    },
    "parameters": {
      "type": "array",
      "description": "The parameters that the SQL query accepts."
    },
    "tags": {
      "type": "array",
      "description": "The tags of the query."
    }
  },
  "required": [
    "name",
    "query_sql"
  ]
}