---
title: "Edit Template API"
method: PUT
path: "/v3/metainfo/template/edit"
tags: ["WhatsApp Templates"]
---

# Edit Template API

`PUT /v3/metainfo/template/edit`

Edit an existing WhatsApp template. This unified endpoint supports editing different types of templates including text-only, media (image/video), and carousel templates by using different request schemas.

## Parameters

- `#/paths/~1v3~1metainfo~1template~1list/get/parameters/0` — unresolved $ref

## Request body

- object
  - `meta_payload` object, required
    - `name` string, required — Template name
    - `language` string, required — Language code (e.g., en, es, hi)
    - `category` 'MARKETING' | 'UTILITY' | 'AUTHENTICATION', required
    - `sub_category` string
    - `display_format` string
    - `optimization_spec` object
      - `bid_amount` integer — Bid amount for the template
      - `bid_strategy` 'LOWEST_COST_WITH_BID_CAP' | 'HIGHEST_COST_WITH_BID_CAP' — Bid strategy for the template
    - `components` object[], required
      - `type` 'HEADER' | 'BODY' | 'FOOTER' | 'BUTTONS' | 'LIMITED_TIME_OFFER'
      - `format` 'TEXT' | 'IMAGE' | 'VIDEO' | 'DOCUMENT'
      - `text` string
      - `example` object
        - `header_handle` string[]
        - `body_text` array[]
          - string[]
        - `buttons` object[]
          - `type` 'QUICK_REPLY' | 'PHONE_NUMBER' | 'URL' | 'COPY_CODE' | 'ORDER_DETAILS'
          - `text` string
          - `phone_number` string
          - `url` string
          - `example` union
            - string
            - string[]
  - `nc_payload` object

## Response `200`

Template Updated Successfullys

- EditTemplateSuccessResponse
  - `status` 'success' | 'error', required — Indicates if the request was successful or not.
  - `message` string, required — A descriptive message about the outcome of the operation.
  - `data` object, required
    - `category` string
    - `facebook_template_id` string
    - `template_id` string

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
