Update Agent

Update an existing agent's configuration and settings.

Endpoint

PATCH https://api.irisos.xyz/v1/agents/{agentId}

Authentication

This endpoint requires an API key. Include it in the request headers:

Authorization: Bearer YOUR_API_KEY

Path Parameters

Parameter
Type
Required
Description

agentId

string

Yes

The unique identifier of the agent to update

Request Body

All fields are optional. Only include the fields you want to update.

Parameter
Type
Description

name

string

The name of the agent

bio

array

Array of biographical statements

personality

object

Personality traits and communication style

knowledge

array

Areas of expertise

goals

array

Agent's objectives

clients

array

Platform integrations

settings

object

Platform-specific configuration

modelProvider

string

AI model provider

model

string

Specific model to use

plugins

array

Plugin configurations

status

string

Agent status (active, inactive)

Example Request Body

Response

Success Response (200 OK)

Error Response (404 Not Found)

Error Response (400 Bad Request)

Example Request

cURL

JavaScript

Python

Partial Updates

This endpoint supports partial updates, meaning you only need to send the fields you want to change. Other fields will remain unchanged.

Example: Update Only Status

Best Practices

  1. Update incrementally: Make small, focused updates rather than large bulk changes

  2. Test changes: Test personality and behavior updates in a development environment first

  3. Version control: Keep track of configuration changes for rollback purposes

  4. Monitor impact: Check agent metrics after updates to ensure desired behavior

  5. Gradual rollout: For production agents, consider creating a test clone first

Last updated