# /api/v3/queries/schema
---
get:
  summary: View schema for global queries
  operationId: View_schema_for_global_queries
  tags:
  - Queries
  description: Retrieve the schema for global queries, those, that are not assigned
    to a project.
  responses:
    '200':
      content:
        application/hal+json:
          examples:
            QuerySchema:
              "$ref": "../components/examples/query_schema.yml"
          schema:
            "$ref": "../components/schemas/schema_for_global_queries_model.yml"
      description: OK
      headers: {}
    '403':
      content:
        application/hal+json:
          schema:
            $ref: "../components/schemas/error_response.yml"
          examples:
            response:
              value:
                _type: Error
                errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission
                message: You are not authorized to access this resource.
      description: "**Required permission:** view work package in any project"
      headers: {}
