You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB

7 days ago
meta {
name: 设为主要意向客户
type: http
seq: 4
tags: [
generated
]
}
post {
url: {{baseUrl}}/api/opportunity/customer/set-primary
body: formUrlEncoded
auth: inherit
}
body:form-urlencoded {
oppId: 748556126794022912
customerId: 920000000000000100
}
docs {
# 设为主要意向客户
`POST /api/opportunity/customer/set-primary`
商机详情「客户」Tab 行操作「设为主」。三步事务:原主要客户降为普通 → 置新主要 → 主表快照列回写;幂等(重复设置同一主要客户仍成功)。关联行不存在报 66010。
## 请求参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
| --- | --- | --- | --- | --- |
| oppId | string | 是 | - | 商机 ID |
| customerId | string | 是 | - | 目标客户 ID(须已关联该商机) |
## 请求示例
请求头:Authorization: Bearer {{token}}
Content-Type: application/x-www-form-urlencoded
POST /api/opportunity/customer/set-primary
oppId=748556126794022912&customerId=920000000000000100
## 响应 data 结构
null
## 响应示例
// 示例数据,字段结构以上表为准,非真实返回
```json
{
"code": 0,
"success": true,
"message": "success",
"data": null
}
```
}