---
title: "POST /api/ee/apps/generate/queries"
method: POST
path: "/api/ee/apps/generate/queries"
tags: ["/api/ee/apps"]
---

# POST /api/ee/apps/generate/queries

`POST /api/ee/apps/generate/queries`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ee/apps/generate/queries`
- Auth: API key in header `X-API-Key`

The YAML files of the questions a data app defines, one per `defineQuery` export in `queries`, in its collection with
  the entity ID `collection`. Nothing is saved. Superusers only.

## Request body

- object
  - `collection` string, required: String must be a valid 21-character NanoID string.
  - `queries` object, required: Value must be a map.

## Response `2XX`

Successful response

- object[]
  - `contents` string, required
  - `path` string, required: value must be a non-blank string.

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/ee/apps/generate/queries/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) - [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metabase/apis/metabase-api/revisions/2e178f5a7934?raw)
