---
title: "Unbind a tile from its query model"
method: DELETE
path: "/api/v2/documents/{identifier}/draft/{draftIdentifier}/queries/{queryKey}/query-model"
tags: ["Documents"]
---

# Unbind a tile from its query model

`DELETE /api/v2/documents/{identifier}/draft/{draftIdentifier}/queries/{queryKey}/query-model`

Unbind a query-presentation tile from its query model on a draft, keeping the tile’s query. No request body.

The query-model binding (`query.model_extension_id`) is server-owned on the whole-document PATCH surface — a supplied value there is ignored and the tile keeps its stored binding. This draft-scoped route is the way to change it, addressing one tile by its stable record key. The binding shifts on every draft (each draft re-clones its query models), so work against a draft you have already read.

## Path parameters

- `draftIdentifier` string, required — Draft workbook identifier (see `PATCH /api/v2/documents/{identifier}/draft`).
- `identifier` string, required — Published document identifier.
- `queryKey` string, required — Record key of the tile, as it appears in `queryPresentations.data`.

## Response `200`

Tile unbound from its query model; the response carries the `draftIdentifier`.

- DocumentsV2PatchDraftResponse
  - `description` string, nullable, required — Document description.
  - `draftIdentifier` string, required — Identifier of the draft the patch was applied to.
  - `identifier` string, required — Published document identifier the draft targets.
  - `name` string, required — Document name.

## Other responses

- `400` — Invalid `queryKey`, or the tile is LINKED.
- `401` — Authentication required.
- `403` — Insufficient permissions to update the document.
- `404` — Document, draft, or tile not found.
- `405` — Method not allowed.
- `409` — The target is not a published document.

## Changes

> 22 revisions in range; 18 could not be searched.

- **2026-07-26** `f65b6ea0a62f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/omniapp/apis/omni-api/changes/api/v2/documents/:identifier/draft/:draftIdentifier/queries/:queryKey/query-model/delete.md)

---

[API](https://skmtc.dev/omniapp/apis/omni-api.md) · [All operations](https://skmtc.dev/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omniapp/omni-api/revisions/2ed3f36eff42/schema)
