Skip to main content
PATCH
/
v1
/
models
/
{modelId}
Rename model
curl --request PATCH \
  --url https://{instance}.omniapp.co/api/v1/models/{modelId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "customer_metrics_v2"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "baseModelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "modelKind": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.omni.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

ID of the model to rename.

Body

application/json
name
string
required

The new name for the model.

Example:

"customer_metrics_v2"

Response

Model renamed successfully

id
string<uuid>

ID of the model.

baseModelId
string<uuid> | null

ID of the base model, if applicable.

connectionId
string<uuid> | null

ID of the connection the model is based on.

modelKind
string | null

The type of model.

name
string | null

The name of the model.

createdAt
string<date-time>

The time the model was created.

updatedAt
string<date-time>

The time the model was last updated.

deletedAt
string<date-time> | null

The time the model was deleted, if applicable.