---
title: "Update SMS template"
method: POST
path: "/api/templates/sms/update"
tags: ["templates"]
---

# Update SMS template

`POST /api/templates/sms/update`

## Request body

- ApiSMSTemplateModel
  - `campaignDataFields` object — Campaign-level data fields available as {{field}} merge parameters during message rendering. These fields are overridden by user and event data fields of the same name.
  - `campaignId` object — Campaign ID
  - `clientTemplateId` string — Client template ID. Used as a secondary key to reference the template
  - `createdAt` string, date-time — Date created [Read only]
  - `googleAnalyticsCampaignName` string — Google analytics utm_campaign value
  - `imageUrl` string — Image Url
  - `isDefaultLocale` boolean — Ask your Iterable CSM to enroll you in the beta for this feature. Identifies if the locale associated with the response is the template's default. If empty or flexible default locales are not enabled for the project, the project's default locale is assigned.
  - `linkParams` LinkParam[] — Parameters to append to each URL in contents
    - `key` string, required — Link parameter key
    - `value` string, required — Link parameter value
  - `locale` string — The locale for the content in this request. Leave empty for default locale. Iterable will automatically send the content with locale that matches a 'locale' field in the user profile.
  - `message` string — SMS message
  - `messageTypeId` integer — Message Type Id
  - `name` string — Name of the template
  - `templateId` integer, required — SMS template ID
  - `trackingDomain` string — Tracking Domain
  - `updatedAt` string, date-time — Date last updated [Read only]

## Response `200`

successful operation

## Other responses

- `400` — Invalid parameters
- `401` — Invalid API key

---

[API](https://skmtc.net/iterable/apis/iterable-api.md) · [All operations](https://skmtc.net/iterable/apis/iterable-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/iterable/iterable-api/revisions/afaab604b58c/schema)
