更新通知通道
POST
/api/v1/system/tenant/notify/channel/update
system/tenant/notify/channelsystemTenantNotifyChannel
请求参数
Header 参数
iThings-token
string
可选
默认值:
{{iThings-token}}
iThings-project-id
string
可选
默认值:
1786838173980422144
iThings-app-code
string
可选
默认值:
{{iThings-app-code}}
iThings-user-role
string
可选
默认值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
id
integer <int64>
id编号
tenantCode
string
可选
name
string
通知的命名
type
string
可选
desc
string
备注
webhook
string
默认消息主题
email
object (ThirdEmailConfig)
可选
from
string
必需
host
string
必需
secret
string
必需
nickname
string
必需
port
integer <int64>
必需
isSsl
integer <int64>
必需
示例
{
"id": 0,
"tenantCode": "string",
"name": "string",
"type": "string",
"desc": "string",
"webhook": "string",
"email": {
"from": "string",
"host": "string",
"secret": "string",
"nickname": "string",
"port": 0,
"isSsl": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/tenant/notify/channel/update' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"tenantCode": "string",
"name": "string",
"type": "string",
"desc": "string",
"webhook": "string",
"email": {
"from": "string",
"host": "string",
"secret": "string",
"nickname": "string",
"port": 0,
"isSsl": 0
}
}'
返回响应
🟢200A successful response.
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
示例
{
"code": "200",
"msg": "string"
}

扫码加入 iThings微信交流群

