Docs › API Reference › Communication Service › POST /admin/communication/templates/{template_id}/clone-to-locale
POST /admin/communication/templates/{template_id}/clone-to-locale
Copy all fields (name, content, variables, etc.) of a source template to a target locale, keeping the same template code. Used for quickly creating multilingual templates. If a template with the same name already exists in the target locale, returns 409 conflict. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.
Communication Service `bearerAuth` application/json
Request Parameters
Name In Type Required Default Example Constraints Description
id
path
string
Yes
Source template ID
Request Body
Schema: dto.CloneTemplateToLocaleRequest
Field Type Required Example Constraints Description
target_locale
string
Yes
en-US
content
string
No
subject
string
No
Referenced Schemas
dto.MessageTemplateDetailResponse
Field Type Required Example Constraints Description
code
integer
No
data
dto.MessageTemplateResponse
No
message
string
No
timestamp
string
No
dto.MessageTemplateResponse
Message template data
Field Type Required Example Constraints Description
channel
string
No
sms
code
string
No
verify_code
content
string
No
Your verification code is {code}, valid for 5 minutes.
content_type
string
No
text
created_at
string
No
2026-04-15T10:00:00Z
description
string
No
Used to send login verification codes.
id
string
No
tpl_abc123
is_active
boolean
No
True
name
string
No
Verification code template
subject
string
No
Verification code notification
tenant_id
string
No
tnt_xyz789
updated_at
string
No
2026-04-15T10:00:00Z
variables
array ofstring
No
['["code"]']
version
integer
No
1
dto.SimpleResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
timestamp
string
No