Rename model
Renames a model by updating its name. This endpoint allows you to programmatically rename models without using the UI, which is particularly useful for bulk operations on shared extension models created via POST /api/v1/models.
The new name must be unique among active models with the same modelKind and baseModelId.
Branch-specific constraints:
- Name must match git-compatible regex:
[\w\-/]+ - No git ref path conflicts (e.g., cannot rename to
teamifteam/projectexists) - Cannot rename branches with an open pull request (when
pullRequestUrlis set) — renaming would desync Omni from the git remote
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
ID of the model to rename.
Body
The new name for the model.
"customer_metrics_v2"
Response
Model renamed successfully
ID of the model.
ID of the base model, if applicable.
ID of the connection the model is based on.
The type of model.
The name of the model.
The time the model was created.
The time the model was last updated.
The time the model was deleted, if applicable.