POST
/
{resourceSlug}
/
forms
/
model
/
add

Path Parameters

resourceSlug
string
required

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

Body

model.json

Represents an AI model used within a team or organization.

_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

Server response after successsfully adding a new object

_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.