POST
/
{resourceSlug}
/
forms
/
{modelId}
/
edit

Path Parameters

resourceSlug
string
required

The resourceSlug is a URL parameter of the teamId associated with the user.

modelId
string
required

The ID of the model to be edited.

Body

model.json
_id
string
required

Unique identifier for the model.

orgId
string
required

Identifier of the organization to which the model belongs.

teamId
string
required

Identifier of the team to which the model belongs.

name
string
required

The name of the model.

model
string
required

The specific AI model used.

embeddingLength
integer
required

The length of the embeddings generated by the model.

modelType
string
required

The type of the model.

type
string
required

The general type of the model (e.g., embedding, language model).

config
object
required

Configuration settings for the model.

Response

302 - dynamicResponse
_id
string

The unique Mongo id of the newly inserted object.

redirect
string

a string containing the redirect link to get all objects after a successful insertion.