Skip to main content
PUT
/
agent-config
/
model
/
default
Default model
curl --request PUT \
  --url https://www.dench.com/api/v1/agent-config/model/default \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "modelId": "string"
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
modelId
string | null
required

Model id, or null to clear.

Response

Successful response