/api/ee/replacement

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

Changed on

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

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

transform_namestring required
transform_tag_idsinteger[] nullable

Response

Successful response

statusunknown required

Changes

    • breaking

      removed subschema #2 from the request property oneOf list

    • breaking

      removed subschema #1 subschema #2 from the request property oneOf list

    • breaking

      the request property type changed from object to no type

    • info

      added subschema #2 to the request property anyOf list

    • info

      added to the request property anyOf list

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      endpoint added