Pinter
ENID
Agents
View as Markdown

Update AI Agent Configuration

PUT/api/agents/{agent_id}

Overview

Updates system prompt instructions, temperature, model assignment, or tool configurations of an agent.

Authentication & Headers

  • Auth: Bearer Token (Agent Owner or L1 Superadmin)
  • Required Header: API-Version: 1

Parameters & Request Body Fields

  • agent_id (path, string, required): Unique UUID of the target agent.
  • name (string, optional): Updated name.
  • description (string, optional): Updated summary.
  • system_instruction (string, optional): Updated prompt instruction.
  • temperature (number, optional): Updated temperature setting.

Parameters

Path

agent_idstringrequired
Unique UUID of the target AI Agent.

Request body

application/json

namestring | null
descriptionstring | null
avatar_urlstring | null
model_idstring | null
identitystring | null
missionstring | null
methodologystring | null
boundariesstring | null
examplesstring | null
toolsobject[] | null
sub_agentsobject[] | null
output_keystring | null
output_schemaobject | null
input_schemaobject | null
generate_content_configobject | null
disallow_transfer_to_parentboolean | null
disallow_transfer_to_peersboolean | null
plannerobject | null
orchestration_typestring | null
orchestration_configobject | null
canvas_positionobject | null
canvas_connectionsobject | null
allow_personalizationboolean | null
is_sub_agentboolean | null
{
  "name": "string",
  "description": "string",
  "avatar_url": "string",
  "model_id": "string",
  "identity": "string",
  "mission": "string",
  "methodology": "string",
  "boundaries": "string",
  "examples": "string",
  "tools": [
    null
  ],
  "sub_agents": [
    null
  ],
  "output_key": "string",
  "output_schema": {},
  "input_schema": {},
  "generate_content_config": {},
  "disallow_transfer_to_parent": true,
  "disallow_transfer_to_peers": true,
  "planner": {},
  "orchestration_type": "string",
  "orchestration_config": {},
  "canvas_position": {},
  "canvas_connections": {},
  "allow_personalization": true,
  "is_sub_agent": true
}

Responses

200 Agent updated successfully

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

404 Not Found - The requested resource ID was not found.

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X PUT "$PINTER_URL/api/agents/agnt_risk_compliance_01" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","description":"string","avatar_url":"string","model_id":"string","identity":"string","mission":"string","methodology":"string","boundaries":"string","examples":"string","tools":[null],"sub_agents":[null],"output_key":"string","output_schema":{},"input_schema":{},"generate_content_config":{},"disallow_transfer_to_parent":true,"disallow_transfer_to_peers":true,"planner":{},"orchestration_type":"string","orchestration_config":{},"canvas_position":{},"canvas_connections":{},"allow_personalization":true,"is_sub_agent":true}'