更新入群欢迎语
POST
https://aa-hub.ddregion.com/api/v2/room/welcome/update
请求参数
Query 参数
token
string
必需
Body 参数application/json
id
string
必需
welcomeMaterialIds
array[string]
必需
triggerCondition
object
必需
delayTime
integer
必需
userCount
integer
必需
status
boolean
必需
rooms
array [object {2}]
必需
botId
string
可选
imRoomId
string
可选
isAtContact
boolean
必需
示例
{
"id": "111111",
"welcomeMaterialIds": [
"1111",
"22222"
],
"triggerCondition": {
"delayTime": 7,
"userCount": 12
},
"status": true,
"rooms": [
{
"botId": "1111",
"imRoomId": "2222"
}
],
"isAtContact": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aa-hub.ddregion.com/api/v2/room/welcome/update?token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "111111",
"welcomeMaterialIds": [
"1111",
"22222"
],
"triggerCondition": {
"delayTime": 7,
"userCount": 12
},
"status": true,
"rooms": [
{
"botId": "1111",
"imRoomId": "2222"
}
],
"isAtContact": false
}'
返回响应
🟢200成功
application/json
Body
errcode
number
返回码
errmsg
string
必需
id
string
欢迎语id
welcomeMaterialIds
array[string]
欢迎语素材
triggerCondition
object
触发条件
delayTime
string
延迟xx秒
userCount
string
满xx人
status
boolean
状态
rooms
array [object {2}]
生效群聊
botId
string
托管账号id
imRoomId
string
群聊id
isAtContact
boolean
是否艾特用户
示例
{
"errcode": 0,
"errmsg": "string",
"id": "string",
"welcomeMaterialIds": [
"string"
],
"triggerCondition": {
"delayTime": "string",
"userCount": "string"
},
"status": true,
"rooms": [
{
"botId": "string",
"imRoomId": "string"
}
],
"isAtContact": true
}