Skip to main content
PUT
Update template

Path Parameters

templateId
string<uuid>
required

Body

Request body for updating a workflow template. All fields are optional.

name
string
Required string length: 1 - 255
description
string | null
variables
object[]
applicableMediums
enum<string>[] | null

Conversation types where this template can be used: PHONE, SMS, CHAT, or GHL. Set null or an empty array to allow all conversation types. If omitted, new templates allow all conversation types and updates keep the current selection.

Available options:
CHAT,
PHONE,
GHL,
SMS
Example:
officeHoursAvailability
enum<string> | null

When this template can be used, based on your office hours. OPEN allows use during office hours; CLOSED allows use outside office hours. Set null to allow use at any time. If omitted, new templates are available at any time and updates keep the current setting.

Available options:
OPEN,
CLOSED
workflow
object

Response

Response containing the updated template

success
enum<boolean>
required
Available options:
true
data
object
required