Skip to content
TriedDocs
Response engines

Update Retell LLM

Change fields on a Retell LLM's draft version.

PATCHhttps://api.tried.com.au/update-retell-llm/{llm_id}

Merges the fields you send over the latest version and validates the result, including the prompt limit and knowledge base IDs. If the latest version is published, the change is saved as a new draft at the next version number. Arrays such as general_tools and states are replaced whole.

Agents that reference the LLM without a pinned version use the latest version, so drafts take effect on unpublished agents and in the playground right away.

Request#

Path parameters#

Parameter Type Required Description
llm_id string Yes The LLM.

Body#

Any field of Create Retell LLM, all optional.

Example request#

curl -X PATCH "https://api.tried.com.au/update-retell-llm/llm_9c8b7a6f5e4d3c2b1a0f9e8d" \
  -H "Authorization: Bearer $TRIED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.6-luna",
  "model_temperature": 0.2
}'
const res = await fetch("https://api.tried.com.au/update-retell-llm/llm_9c8b7a6f5e4d3c2b1a0f9e8d", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TRIED_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "gpt-5.6-luna",
    "model_temperature": 0.2
  }),
});
const data = await res.json();
import os, requests

res = requests.patch(
    "https://api.tried.com.au/update-retell-llm/llm_9c8b7a6f5e4d3c2b1a0f9e8d",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
    json={
        "model": "gpt-5.6-luna",
        "model_temperature": 0.2,
    },
)
data = res.json()

Response#

200 OK with the updated LLM.

Errors#

Status When
400 Validation failed, the prompt is over the limit, or a knowledge base ID does not exist.
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the agents scope.
404 The LLM does not exist.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.