Skip to main content
POST
Update a template

Restrictions

Usage

  • Only the fields present in the request are written. A channel you omit keeps its current content; send it as an empty string to clear it.
  • The caller needs data-permission on the template’s team; otherwise the response is AccessDenied.
  • Every call is recorded in the account audit log. Don’t put secrets in request fields.

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.

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.

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_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.