Skip to main content
POST
/
{resourceSlug}
/
forms
/
{modelId}
/
edit
Edit A Model
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
modelId
string
required

Body

model.json
_id
string
required
orgId
string
required
teamId
string
required
name
string
required
model
string
required
embeddingLength
integer
required
modelType
string
required
type
string
required
config
object
required

Response

_id
string
redirect
string