- 语聚AI应用助手API使用说明
- 语聚GPT API
- 对话助手 API
- 外部联系人API
- 知识助手 API
- 通用功能API
- AI营销
更新外部联系人
PUT
/v1/openapi/contacts
请求参数
Query 参数
apiKey
string
必需
示例值:
YMLUEcmsN8UYsNfxfm2403sv1711016924
Body 参数application/json
contact_id
string
外部联系人id
contact
object
联系人信息
email
string
联系人邮箱
channel
object
渠道信息
company
object
企业信息
custom
object
自定义信息
示例
{
"contact_id": "ed44e798cf594b43b924d8b0d745f48c",
"contact": {
"email": "test123@test.com"
},
"channel": {},
"company": {},
"custom": {}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://chat.jijyun.cn/v1/openapi/contacts?apiKey=YMLUEcmsN8UYsNfxfm2403sv1711016924' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact_id": "ed44e798cf594b43b924d8b0d745f48c",
"contact": {
"email": "test123@test.com"
},
"channel": {},
"company": {},
"custom": {}
}'
返回响应
🟢200成功
application/json
Body
Code
integer
必需
Data
object
必需
avatar
null
必需
chatid
null
必需
company
null
必需
company_address
null
必需
company_website
null
必需
companyid
null
必需
contact_id
null
必需
contact_name
null
必需
conversation_id
null
必需
create_time
string
必需
device_id
string
必需
email
string
必需
id
string
必需
message_id
null
必需
mobile
null
必需
name
string
必需
open_id
null
必需
product_name
null
必需
roomTopic
null
必需
room_id
null
必需
update_time
string
必需
userid
null
必需
Msg
string
必需
示例
{
"Code": 2000,
"Data": {
"avatar": null,
"chatid": null,
"company": null,
"company_address": null,
"company_website": null,
"companyid": null,
"contact_id": null,
"contact_name": null,
"conversation_id": null,
"create_time": "2024-06-06 15:04:18",
"device_id": "ed44e798cf594b43b924d8b0d745f48c-988028",
"email": "test123@test.com",
"id": "ed44e798cf594b43b924d8b0d745f48c",
"message_id": null,
"mobile": null,
"name": "访客310",
"open_id": null,
"product_name": null,
"roomTopic": null,
"room_id": null,
"update_time": "2024-06-06 15:13:39",
"userid": null
},
"Msg": "成功"
}
修改于 2024-06-06 08:50:50