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.
Supported model kinds:
SCHEMA - Schema modelsSHARED - Shared modelsSHARED_EXTENSION - Shared extension modelsBRANCH - Branch modelsAuthorization:
SCHEMA models: requires MANAGE_MODEL permissionUPDATE permissionUniqueness constraints:
The new name must be unique among active models with the same modelKind and baseModelId.
Branch-specific constraints:
[\w\-/]+team if team/project exists)pullRequestUrl is set) — renaming would desync Omni from the git remoteCan be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
ID of the model to rename.
The new name for the model.
"customer_metrics_v2"
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.