PATCH
/
api
/
v1
/
agents
/
{agentId}
/
versions
/
{versionId}
{
  "version": {
    "id": "<string>",
    "version": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "mode": "FLOW",
    "flows": {
      "blocks": [
        {
          "blockId": "<string>",
          "blockType": "prompt",
          "systemPrompt": "<string>",
          "loop": false,
          "tools": [],
          "nextBlocks": [],
          "metadata": {},
          "inputCaptureType": "phone",
          "transferNumber": "<string>"
        }
      ],
      "startBlockId": "<string>",
      "systemPrompt": "<string>"
    },
    "prompt": {
      "system": "<string>"
    },
    "sttConfigId": "<string>",
    "ttsConfigId": "<string>",
    "llmConfigId": "<string>",
    "overrideSTTConfig": {},
    "overrideTTSConfig": {},
    "overrideLLMConfig": {},
    "voiceId": "<string>",
    "channels": [
      "INBOUND_CALL"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required
versionId
string
required

Body

application/json

Response

200
application/json

Agent version updated successfully

The response is of type object.