Skip to main content

Update template

PATCH 

/api/v1/orgs/{orgId}/notifications/templates/{templateId}

Update template content (partial update supported).

Parameters

  • templateId (string, required): Template identifier (format: template_xxx)

Request Body

All fields are optional; only the fields provided are changed. Same per-channel subject/content interpretation as create (see the table on Create template).

  • name (string, optional, max length 200): New template name.
  • subject (string, optional, max length 500): New subject. Used only by the email channel type.
  • content (string, optional, max length 50000): New message body.
  • channelTypes (array, optional): Replaces the entire channel type list this template targets. Valid values: email, teams, linemessage, webhook.
  • tags (array, optional): Replaces the entire tag list.

Responses

  • 200 OK: Template updated successfully.
  • 404 Not Found: Template not found.
  • 400 Bad Request: Validation error or invalid template variable syntax.

Request

Responses

Template updated successfully