Models
Re-parse a model's SQL
Changed onRe-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 URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/models/{modelId}/reparse
- AuthHTTP 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
Example response
{
"success": true
}Changes
- info
endpoint added
- info