PATCH /api/v1/agents/:agentName
Renames an existing agent. The new name is slugified for the agent ID while preserving the display name.Path Parameters
Current slug name of the agent to rename
Request Body
New display name for the agent. Will be slugified for the internal ID while preserving the full name for display.
Response
Always
true on successThe new slugified agent name (internal ID)
The new display name (preserves original formatting)
Example
cURL
Response
Error Responses
400 Bad Request
Agent name produces an empty slug or agent does not exist
401 Unauthorized
Missing or invalid session cookie
409 Conflict
An agent with the new name already exists for this tenant
Notes
- The agent name is slugified (lowercased, spaces to hyphens, special characters removed)
- The original display name is preserved for UI purposes
- All existing messages, API keys, and routing configs remain associated with the agent
- Renaming is an idempotent operation - renaming to the same name succeeds
See Also
List Agents
Get all agents with usage statistics
Delete Agent
Permanently delete an agent