For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList agents
      • POSTCreate agent
      • POSTFetch external agent card
      • GETGet agent details
      • PUTUpdate agent
      • DELDelete agent
      • STREAMResolve a pending agent tool approval
      • POSTAdd capability to agent
      • DELRemove capability from agent
      • STREAMExecute agent
      • GETList agent executions
      • GETGet execution detail
      • GETList tool calls
      • GETGet tool call detail
      • GETExport agent for runtime
      • POSTPublish agent
      • POSTRefresh cached agent card
      • STREAMResume a paused agent execution
      • POSTExecute agent voice (text-to-speech)
Dashboard
LogoLogo
Runtype APIAgents

Update agent

PUT
/v1/agents/:id
PUT
/v1/agents/:id
$curl -X PUT https://api.runtype.com/v1/agents/id \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "config": {
> "frequencyPenalty": 0.2,
> "model": "gpt-4-turbo",
> "presencePenalty": -0.1,
> "seed": 123,
> "temperature": 0.5,
> "topK": 40,
> "topP": 0.9
> },
> "description": "Updated description",
> "name": "Updated Agent Name"
>}'
1{
2 "agentType": "string",
3 "claudeManagedConfig": {},
4 "config": {},
5 "createdAt": "string",
6 "description": "string",
7 "draftVersionId": "string",
8 "externalConfig": {},
9 "healthStatus": "string",
10 "icon": "string",
11 "id": "string",
12 "lastHealthCheckAt": "string",
13 "name": "string",
14 "organizationId": "string",
15 "primaryFlowId": "string",
16 "publishedVersionId": "string",
17 "status": "string",
18 "updatedAt": "string",
19 "userId": "string",
20 "_warnings": [
21 "string"
22 ],
23 "dashboardUrl": "string"
24}

Update an existing agent. Supports partial updates — only provided fields are changed. Config updates are deep-merged.

Was this page helpful?
Previous

Delete agent

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
agentTypeenumOptional
Allowed values:
claudeManagedConfigobjectOptional
configobjectOptional
descriptionstringOptional
externalConfigobject or nullOptional
iconstringOptional<=50 characters
maxTurnsintegerOptional1-100
namestringOptional>=1 character
primaryFlowIdstring or nullOptional

Response

Agent updated
agentTypestring
claudeManagedConfigmap from strings to any or null
configmap from strings to any or null
createdAtstring
descriptionstring or null
draftVersionIdstring or null
externalConfigmap from strings to any or null
healthStatusstring or null
iconstring or null
idstring
lastHealthCheckAtstring or null
namestring
organizationIdstring or null
primaryFlowIdstring or null
publishedVersionIdstring or null
statusstring
updatedAtstring
userIdstring
_warningslist of strings
dashboardUrlstring

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error