Models

Re-parse a model's SQL

Changed on

Re-parse every SQL field and view in a shared model or shared extension and refresh their inferred column types, clearing errors whose cause was fixed elsewhere, such as a warehouse grant. The model is saved only if its YAML is unchanged; otherwise the request fails with 400 and nothing is saved. Runs synchronously; if the request times out, the re-parse still finishes and saves.

post/api/v1/models/{modelId}/reparse

Request

  • Base URL
    https://omniapp.co (the document declares no server; this is the origin it was published from)
  • URL
    https://omniapp.co/api/v1/models/{modelId}/reparse
  • Auth
    HTTP bearer

Path parameters

modelIdstring uuid required

Model UUID

Example:123e4567-e89b-12d3-a456-426614174000

Query parameters

branch_idstring uuid

ID of a branch to re-parse instead of the model itself: a branch of this model, or for a shared extension a branch of its base shared model (of the extension itself if it uses isolated branches). Unlike the model, a branch saves the re-parse even when it changes the branch's YAML, except on a git-follower model.

Example:123e4567-e89b-12d3-a456-426614174001

Response

Model re-parsed and saved

successboolean required

Whether the operation was successful

Example response

{
  "success": true
}

Changes