v1

latestOpenAPI 3.0.02026-08-063524105.9 KB
Agents

Update agent

Updates agent details. All fields are optional - only provided fields will be updated. Cannot update soft-deleted agents (returns 404).

patch/v1/agents/{id}

Path parameters

idstring uuid required

Agent UUID

Example:123e4567-e89b-12d3-a456-426614174000

Request body

namestring

Agent name

promptstring nullable

System prompt (can be set to null)

languagestring nullable

Agent language code (can be set to null)

Example request

{
  "name": "Updated Agent Name",
  "prompt": "Updated system prompt...",
  "language": "es"
}

Response

Agent updated successfully

idstring uuid required

Unique agent identifier

workspaceIdstring uuid required

Workspace ID that owns this agent

namestring required

Agent name

promptstring nullable required

System prompt for the agent

voiceConfigobject nullable required

Voice configuration settings (JSON)

widgetConfigobject nullable required

Widget appearance settings (JSON)

languagestring nullable required

Agent language code

createdAtstring date-time required

Agent creation timestamp

updatedAtstring date-time required

Agent last update timestamp

deletedAtstring date-time nullable required

Soft delete timestamp (null if active)

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "789e4567-e89b-12d3-a456-426614174000",
  "name": "Customer Support Agent",
  "prompt": "You are a helpful customer support assistant...",
  "voiceConfig": {
    "provider": "elevenlabs",
    "voiceId": "voice_123"
  },
  "widgetConfig": {
    "primaryColor": "#007bff",
    "position": "bottom-right"
  },
  "language": "en",
  "createdAt": "2025-12-11T12:00:00Z",
  "updatedAt": "2025-12-11T12:00:00Z"
}