Bland.Ai
  1. 对话途径
Bland.Ai
  • 入门指南
  • 基本
    • 发送呼叫(简单)
      POST
    • 使用 Pathways 发送呼叫(简单)
      POST
  • 通话
    • 发送呼叫
      POST
    • 使用 AI 分析通话
      POST
    • 停止当前通话
      POST
    • 列出通话
      GET
    • 通话详情
      GET
    • 声音录制
      GET
    • 获取更正的成绩单
      GET
  • 网络代理
    • 创建网络代理
      POST
    • 更新网络代理设置
      POST
    • 授权网络代理呼叫
      POST
    • 删除网络代理
      POST
    • 列出网络代理
      GET
  • 对话途径
    • 获取单一途径信息
      GET
    • 创建途径
      POST
    • 更新途径
      POST
    • 删除途径
      DELETE
  • 呼入号码
    • 购买呼入号码
      POST
    • 更新入站详细信息
      POST
    • 列出呼入号码
      GET
    • 呼入号码详情
      GET
  • 呼出号码
    • 购买呼出号码
      POST
    • 列出呼出号码
      GET
  • 声音
    • 列出声音
    • 语音详情
    • 生成音频样本
  • 定制工具
    • 创建自定义工具
    • 更新自定义工具
    • 列出自定义工具
    • 自定义工具详细信息
  • 自定义 Twilio 帐户
    • 创建加密密钥
    • 删除加密密钥
    • 上传呼入电话号码
    • 删除呼入电话号码
  • 子账号
    • 创建子账户
    • 将积分转移到子账户
    • 轮换子账户 API 密钥
    • 禁用子账户
    • 列出子账户
    • 列出子账户详细信息
  • 批次
    • 发送一批呼叫
    • 使用 AI 分析批次
    • 停止活动批次
    • 列出批次
    • 批次详情
    • 检索批量分析
  • 短信
    • A2P 注册
    • 检查短信 A2P 状态
    • 更新短信提示
    • 短信对话分析
    • 获取短信
    • 切换短信回复方式
    • 更新短信 Webhook
  • 账户
    • 帐户详细资料
  1. 对话途径

更新途径

开发环境
开发环境
POST
/v1/convo_pathway/{pathway_id}
更新对话路径的字段 - 包括名称、描述、节点和边。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/convo_pathway/' \
--header 'authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "<string>",
  "description": "<string>",
  "nodes": {},
  "edges": {}
}'
响应示例响应示例
{
  "status": "success",
  "message": "Pathway updated successfully",
  "pathway_data": {
    "pathway_id": "9d404c1b-6a23-4426-953a-a52c392ff8f1",
    "name": "Updated Demo Pathway",
    "description": "This is an updated description",
    "nodes": [
        {
            "id": "1",
            "data": {
                "name": "Start",
                "text": "Hey there, how are you doing today?",
                "isStart": true,
            },
            "type": "Default"
        },
        {
            "id": "randomnode_1710288752186",
            "data": {
                "name": "End call",
                "prompt": "Click 'Add New Node' on the right to add a new node",
            },
            "type": "End Call"
        },
        {
            "id": "randomnode_1710288871721",
            "data": {
                "name": "New Node",
                "prompt": "Click 'Add New Node' on the right to add a new node",
            },
            "type": "Default"
        }
    ],
    "edges": [
        {
            "id": "1",
            "source": "1",
            "target": "randomnode_1710288752186",
            "data": {
                "name": "End call",
                "prompt": "Click 'Add New Node' on the right to add a new node",
            }
        },
        {
            "id": "2",
            "source": "1",
            "target": "randomnode_1710288871721",
            "data": {
                "name": "New Node",
                "prompt": "Click 'Add New Node' on the right to add a new node",
            }
        }
    ]
  }
}

请求参数

Path 参数
pathway_id
string 
必需
您要更新的对话路径的唯一标识符。
Header 参数
Content-Type
string 
必需
示例值:
application/json
authorization
string 
必需
示例值:
<authorization>
Body 参数application/json
name
string 
对话路径的名称
可选
description
string 
路径的描述
可选
nodes
object 
可选
有关路径中所有节点的数据。
edges
object 
可选
有关路径中所有边缘的数据。
示例

返回响应

🟢200成功
application/json
Body
status
string 
必需
可以是success或error.
message
string 
必需
pathway_data
object 
必需
路径的唯一标识符(仅当状态为 时才出现success)。
pathway_id
string 
必需
name
string 
必需
description
string 
必需
nodes
array [object {3}] 
必需
edges
array [object {4}] 
必需
修改于 2024-05-10 07:27:37
上一页
创建途径
下一页
删除途径
Built with