curl --request PUT \
--url https://agent-prod.studio.lyzr.ai/v3/agents/{agent_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Updated Customer Support Agent",
"description": "<string>",
"agent_role": "<string>",
"agent_instructions": "<string>",
"agent_goal": "<string>",
"agent_context": "<string>",
"agent_output": "<string>",
"examples": "<string>",
"features": [
"<string>"
],
"tools": [
"<string>"
],
"tool_usage_description": "<string>",
"llm_credential_id": "<string>",
"response_format": {},
"provider_id": "<string>",
"model": "<string>",
"top_p": 123,
"temperature": 123,
"managed_agents": [
{
"id": "<string>",
"name": "<string>",
"usage_description": "<string>"
}
],
"tool_configs": [
{
"tool_name": "<string>",
"tool_source": "<string>",
"action_names": [
"<string>"
],
"persist_auth": true,
"server_id": "<string>",
"provider_uuid": "<string>",
"credential_id": "<string>"
}
],
"store_messages": true,
"file_output": true,
"a2a_tools": [
{
"base_url": "<string>"
}
],
"voice_config": {},
"additional_model_params": {},
"image_output_config": {
"model": "<string>",
"credential_id": "<string>"
},
"max_iterations": 123,
"git_agent": {
"enabled": true,
"repo_name": "<string>",
"branch": "<string>",
"environments": [
"<string>"
],
"branches": [
"<string>"
],
"reviewers": [
"<string>"
],
"pat": "<string>",
"org": "<string>",
"provider": "<string>",
"repo_url": "<string>",
"repo_full_name": "<string>"
},
"proxy_config": {
"enabled": true,
"endpoint_url": "<string>",
"api_key": "<string>",
"system_prompt_captured": true,
"parameter_policies": {},
"passthrough_tools": true,
"passthrough_tool_choice": true,
"passthrough_response_format": true
}
}
'