POST
/
{resourceSlug}
/
forms
/
{modelId}
/
edit
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/{modelId}/edit \
  --header 'Content-Type: model.json' \
  --data '{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "model": "<string>",
  "embeddingLength": 123,
  "modelType": "<string>",
  "type": "<string>",
  "config": {
    "model": "<string>",
    "api_key": "<string>",
    "base_url": "<string>",
    "cohere_api_key": "<string>",
    "groq_api_key": "<string>"
  }
}'
{
  "_id": "<string>",
  "redirect": "<string>"
}

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

JSON body containing the edited model data. All fields must be included, with updated values for those that need changes.

Represents an AI model used within a team or organization.

Response

302
dynamicResponse

Successful operation, redirect to '/{resourceSlug}/models'.

Server response after successsfully adding a new object