获取通知模版详情
POST
/api/v1/system/notify/template/read
system/notify/templatesystemNotifyTemplate
请求参数
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
示例
{
"id": 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/notify/template/read' \
--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
}'
返回响应
🟢200A successful response.
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (NotifyTemplate)
可选
id
integer <int64>
id编号
tenantCode
string
可选
name
string
通知的命名
notifyCode
string
对应的配置Code
type
string
可选
templateCode
string
通知类型编码
signName
string
签名(短信)
subject
string
默认消息主题
body
string
默认模版内容
desc
string
备注
channelID
integer <int64>
可选
channel
object (TenantNotifyChannel)
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"id": 0,
"tenantCode": "string",
"name": "string",
"notifyCode": "string",
"type": "string",
"templateCode": "string",
"signName": "string",
"subject": "string",
"body": "string",
"desc": "string",
"channelID": 0,
"channel": {
"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
}
}
}
}

扫码加入 iThings微信交流群

