文档
测试

新增/修改

POST
/api/v1/facade/message/type/add_or_update

接口描述

新增消息类型

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填

请求参数

参数名
类型
描述
必填
sourceCnName
String
来源中文名(如:工单,事件,备件,日报......)
必填
sourceEnName
String
来源英文名(如:task,event,spare,daily......)
必填
type
String
类型名称(如:taskSuccess)
必填
sonType
String
子类型名称
必填
tenantId
String
租户id
可选
channel
int
1:短信,2:微信,3:钉钉
必填
content
String
模板内容(如果是微信,就传模板id)
必填
id
int
无值表示新增,有值表示修改
可选

响应参数

参数名
类型
描述
必填
status
int
示例:0
必填
message
string
示例:保存成功!
必填
data
object
示例:null
必填
succ
boolean
示例:true
必填

说明 / 示例

{ "status": 0, "message": "保存成功!", "data": null, "succ": true }