- Open API
- Quick Start
- About Pagination
- Member Management
- Team Management
- Schedule Management
- Information Retrieval
- Preference Settings
- Channel
- Template Management
- Incident Management
- Group View
- Match conditions
- Enable rule
- Disable rule
- Delete rule
- Rule list
- See creation interface for filters explanation
- Create rule
- Rule description
- Update rule
- Channel
- Match conditions
- Match conditions
- Update rule
- Channel
- Rule ID
- Inner conditions
- Enable rule
- Rule list
- Rule details
- Rule name
- Rule description
- Match conditions
- Rule description
- See creation interface for filters explanation
- Disable rule
- Rule description
- Alert Management
- Change Management
- Insights (old)
- Custom Fields
- Service Calendar
- Label Enhancement
- Alert Processing
- Integration Routing
- License Management
- Insights
- Event API
- Webhook
Required when updating
POST
/template/create
Request
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
team_id
integer
Rule description
template_name
string
Inner conditions
description
string
Match conditions
email
string
Name
sms
string
Enable rule
dingtalk
string
Disable rule
wecom
string
Delete rule
feishu
string
Rule list
feishu_app
string
See creation interface for filters explanation
dingtalk_app
string
Create rule
wecom_app
string
Channel
teams_app
string
Rule name
slack_app
string
Rule description
zoom
string
Inner conditions
telegram
string
Match conditions
Example
{
"team_id": 0,
"template_name": "string",
"description": "string",
"email": "string",
"sms": "string",
"dingtalk": "string",
"wecom": "string",
"feishu": "string",
"feishu_app": "string",
"dingtalk_app": "string",
"wecom_app": "string",
"teams_app": "string",
"slack_app": "string",
"zoom": "string",
"telegram": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/template/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"team_id": 0,
"template_name": "string",
"description": "string",
"email": "string",
"sms": "string",
"dingtalk": "string",
"wecom": "string",
"feishu": "string",
"feishu_app": "string",
"dingtalk_app": "string",
"wecom_app": "string",
"teams_app": "string",
"slack_app": "string",
"zoom": "string",
"telegram": "string"
}'
Responses
🟢200成功
application/json
Body
error
object
optional
data
object
optional
template_id
string
ID
template_name
string
Name
Example
{
"error": {},
"data": {
"template_id": "string",
"template_name": "string"
}
}