v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-05-286377631.6 MB
/api/ee/replacement

POST /api/ee/replacement/replace-model-with-transform

Create a transform from a model, execute it, and replace all usages of the model with the output table. Un-persists the model and converts it to a saved question. Returns 202 with a run_id for polling.

If there is an error during the transform execution, no replacement will be performed and the model will remain unchanged.

If there is an error during the source swap, the transform and the output table will be retained, and the model will remain unchanged. We cannot delete the transform or the output table because they can be used by other queries at this point.

post/api/ee/replacement/replace-model-with-transform

Request body

transform_namestring required
transform_tag_idsinteger[] nullable
transform_targetobject required

Response

Successful response

{"stackTrail":"paths:/api/ee/replacement/replace-model-with-transform:post:responses:2XX:content:application/json:schema:properties:status","oasType":"schema","type":"unknown"}