Skip to main content
POST
Update a template

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Update an existing template.

template_id
string
required

Target template ID; obtain it from POST /template/list.

Pattern: ^[0-9a-fA-F]{24}$
Example:

"6605a1b2c3d4e5f6a7b8c9d0"

template_name
string
required

Template name. 1–39 characters.

Required string length: 1 - 39
team_id
integer<int64> | null

Team scope. 0 for account-wide. Omit to keep the template's current team.

description
string | null

Free-form description. Up to 500 characters. Omit to keep the current content; send an empty string to clear it.

Maximum string length: 500
email
string | null

Email body template source (Go html/template syntax). Omit to keep the current content; send an empty string to clear it.

sms
string | null

SMS template source (Go text/template syntax). Omit to keep the current content; send an empty string to clear it.

voice
string | null

Voice call script template source. Omit to keep the current content; send an empty string to clear it.

dingtalk
string | null

DingTalk robot message template source. Omit to keep the current content; send an empty string to clear it.

wecom
string | null

WeCom robot message template source. Omit to keep the current content; send an empty string to clear it.

wecom_markdown_v2_enabled
boolean | null

When set, switch WeCom robot notifications between markdown_v2 and plain markdown. Omit to keep the existing setting.

feishu
string | null

Feishu robot message template source. Omit to keep the current content; send an empty string to clear it.

feishu_app
string | null

Feishu app message template source. Omit to keep the current content; send an empty string to clear it.

feishu_app_card_v2_table_enabled
boolean | null

When set, enable or disable table rendering for alert labels in Feishu app cards. Omit to keep the existing setting.

feishu_app_card_v2_preserve_blank_lines
boolean | null

When set, keep or drop blank lines in the body of Feishu app card v2 messages. Omit to keep the existing setting.

feishu_app_war_room_enabled
boolean | null

When set, show or hide the Create War Room button on Feishu app cards. Omit to keep the existing setting.

dingtalk_app_war_room_enabled
boolean | null

When set, show or hide the Create War Room button on DingTalk app cards. Omit to keep the existing setting.

slack_app_war_room_enabled
boolean | null

When set, show or hide the Create War Room button on Slack app cards. Omit to keep the existing setting.

dingtalk_app
string | null

DingTalk app message template source. Omit to keep the current content; send an empty string to clear it.

wecom_app
string | null

WeCom app message template source. Omit to keep the current content; send an empty string to clear it.

slack_app
string | null

Slack app message template source. Omit to keep the current content; send an empty string to clear it.

teams_app
string | null

Microsoft Teams app message template source. Omit to keep the current content; send an empty string to clear it.

telegram
string | null

Telegram bot message template source. Omit to keep the current content; send an empty string to clear it.

slack
string | null

Slack robot message template source. Omit to keep the current content; send an empty string to clear it.

zoom
string | null

Zoom bot message template source. Omit to keep the current content; send an empty string to clear it.

incident_card_closed_action_apps
enum<string>[]

Replaces the retained-app list when sent. Supported values: feishu_app, dingtalk_app, wecom_app, slack_app, teams_app. Omit the field to leave it unchanged.

Available options:
feishu_app,
dingtalk_app,
wecom_app,
slack_app,
teams_app
incident_card_hidden_fields
object

Incident card fields hidden per IM app type.

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
required

An empty object. Returned as the data payload by operations whose success signal is simply the absence of an error.