Skip to main content
POST
/
api
/
trpc
/
agent.update
Update Agent
curl --request POST \
  --url https://app.tryiris.dev/api/trpc/agent.update \
  --header 'Content-Type: application/json' \
  --header 'IRIS_ACCESS_TOKEN: <iris_access_token>' \
  --data '
{
  "0": {
    "json": {
      "where": {
        "id": "<string>"
      },
      "data": {
        "name": "<string>",
        "provider": "<string>",
        "modelType": "<string>",
        "configuration": {
          "temperature": 123,
          "maxTokens": 123,
          "timeoutSeconds": 123
        },
        "capabilities": [
          {}
        ]
      }
    }
  }
}
'
{
  "id": "<string>",
  "name": "<string>",
  "provider": "<string>",
  "modelType": "<string>",
  "configuration": {
    "temperature": 123,
    "maxTokens": 123,
    "timeoutSeconds": 123
  },
  "capabilities": [
    {}
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Update Agent

Update an existing AI agent’s configuration.

Headers

IRIS_ACCESS_TOKEN
string
required
Your Iris API access token

Body

0
object
required

Response

id
string
Unique identifier for the agent
name
string
The updated name of the agent
provider
string
The AI provider being used
modelType
string
The type of model being used
configuration
object
capabilities
array
List of enabled agent capabilities
createdAt
date
Timestamp of when the agent was created
updatedAt
date
Timestamp of when the agent was last updated