Agents
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.
Parameter
Path
agent_idstringwajibUnique UUID of the target AI Agent.
Body permintaan
application/json
namestring | nulldescriptionstring | nullavatar_urlstring | nullmodel_idstring | nullidentitystring | nullmissionstring | nullmethodologystring | nullboundariesstring | nullexamplesstring | nulltoolsobject[] | nullsub_agentsobject[] | nulloutput_keystring | nulloutput_schemaobject | nullinput_schemaobject | nullgenerate_content_configobject | nulldisallow_transfer_to_parentboolean | nulldisallow_transfer_to_peersboolean | nullplannerobject | nullorchestration_typestring | nullorchestration_configobject | nullcanvas_positionobject | nullcanvas_connectionsobject | nullallow_personalizationboolean | nullis_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
} Respons
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[]wajibdetail[].msgstringwajibdetail[].typestringwajibdetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Contoh
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}'