Preview Template
POST
/template/previewRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
content
string
required
Content before preview
type
enum<string>
required
Channel type
Allowed values:
dingtalk_appfeishu_appwecom_appslack_appteams_appfeishudingtalkwecomtelegramzoomemailsms
incident_id
string
optional
Preview incident ID, system mock data will be used if not provided
Example
{
"content": "string",
"type": "dingtalk_app",
"incident_id": "string"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object
optional
data
object
required
content
string
Rendered content
success
boolean
Content is correct
message
string
If failed, failure description will be returned here
Only returned when success=false
Example
{
"error": {},
"data": {
"content": "string",
"success": true,
"message": "string"
}
}
Last modified: 2 个月前