---
title: "Edit Zalo template"
method: PUT
path: "/zalo/2/sender/{sender}/templates/{templateName}"
tags: ["channels", "zalo", "zalo-service-management", "zalo-template-management"]
---

# Edit Zalo template

`PUT /zalo/2/sender/{sender}/templates/{templateName}`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/zalo/2/sender/{sender}/templates/{templateName}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Edits an existing template that has REJECTED status. The template will be resubmitted for review.

## Path parameters

- `sender` string, required: Sender ID.
- `templateName` integer, required: Name identifying the template. Must be the same as registered template_id.

## Request body

- 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5EditTemplateRequest
  - `name` string, required: Template name (10-60 characters).
  - `templateContent` 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5ZbsTemplateContent, required: Template content.
    - `type` 'AUTHENTICATION' | 'PAYMENT_REQUEST' | 'SERVICE_REVIEW' | 'VOUCHER' | 'CUSTOM', required
  - `params` 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5TemplateParameter[]: Template parameters for dynamic content.
    - `type` 'CUSTOMER_NAME' | 'PHONE_NUMBER' | 'ADDRESS' | 'CODE' | 'CUSTOM_LABELS' | 'TRADING_STATUS' | 'CONTACT_INFORMATION' | 'GENDER_TITLE' | 'PRODUCT_NAME_BRAND' | 'QUANTITY_AMOUNT' | 'TIME' | 'OTP' | 'URL' | 'CURRENCY_VND' | 'BANK_TRANSFER_NOTE', required: Type of the parameter.
    - `name` string, required: Name of the parameter. Only letters, digits, hyphen and underscore are allowed.
    - `sampleValue` string, required: Sample data for the parameter.
  - `note` string, required: Template note.
  - `trackingId` string, required: Tracking identifier.

## Response `200`

OK

- 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5EditTemplateResponse: Response from Zalo API after editing a ZBS template.
  - `templateId` string: Unique identifier for the edited template.
  - `templateName` string: Name of the template.
  - `templateType` 'AUTHENTICATION' | 'PAYMENT_REQUEST' | 'SERVICE_REVIEW' | 'VOUCHER' | 'CUSTOM', required
  - `status` string: Current status of the template.
  - `tag` 'TRANSACTION' | 'CUSTOMER_CARE' | 'PROMOTION': Template tag for classification.
  - `appId` string: Application ID associated with the template.
  - `oaId` string: Official Account ID that owns the template.
  - `timeout` integer: Template timeout.
  - `previewUrl` string: URL to preview the template in Zalo's interface.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
