Skip to main content
PUT
/
api
/
agent
/
update
/
{agent_id}
Agent Update
curl --request PUT \
  --url https://app.apigene.ai/api/agent/update/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "instructions": "<unknown>",
  "apis": [
    "<string>"
  ],
  "mcps": [
    "<string>"
  ],
  "context": [
    "<string>"
  ],
  "icon": "<unknown>",
  "agent_type": "private"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "instructions": "<string>",
  "agent_type": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "<string>",
  "apis": [
    "<string>"
  ],
  "mcps": [
    "<string>"
  ],
  "context": [
    "<string>"
  ],
  "icon": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'

Path Parameters

agent_id
string
required

Body

application/json

Request model for updating an agent

name
string | null

Name of the agent

description
string | null

Brief description of what the agent does

instructions
any | null

Long string with the agent instructions (can be string or dict)

apis
string[] | null

List of API names that the agent contains

mcps
string[] | null

List of MCP server names that the agent contains

context
string[] | null

List of context IDs that the agent contains

icon
any | null

Either a URL, base64 string, or dict for the agent icon

agent_type
enum<string> | null

Type of agent (private/public)

Available options:
private,
public

Response

Successful Response

Response model for agent

id
string
required

Unique identifier for the agent

name
string
required

Name of the agent

description
string
required

Brief description of what the agent does

instructions
string
required

Long string with the agent instructions

agent_type
string
required

Type of agent (private/public)

created_at
string<date-time>
required

When the agent was created

updated_at
string<date-time>
required

When the agent was last updated

created_by
string
required

Email of the user who created the agent

apis
string[]

List of API names that the agent contains

mcps
string[]

List of MCP server names that the agent contains

context
string[]

List of context IDs that the agent contains

icon
string | null

Either a URL or base64 string for the agent icon