---
title: "Update Account Template"
method: PUT
path: "/accounts/{accountId}/templates"
tags: ["Account"]
---

# Update Account Template

`PUT /accounts/{accountId}/templates`

Modifies the details of an existing account-level message template. This endpoint allows updates to the template name, body text, and the addition/modification of media properties to convert a standard text  template into a Media Template (MMS).

## Path parameters

- `accountId` string, required

## Request body

- AppTemplateEditRequestParams
  - `id` string — The unique identifier of the account template to be updated.
  - `name` string — The current or updated name of the template.
  - `message` string — The updated text content for the template message body.
  - `mediaDetails` MediaDetails
    - `mediaPath` MediaPath[], nullable
      - `fileName` string
      - `extension` string
      - `fileSaveId` string
      - `mimetype` string
      - `url` string

## Response `200`

Success

- ExternalApiResponseNew
  - `appCode` string
  - `message` string
  - `isError` boolean

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/ministrybytext/apis/pbt-api-documentation.md) · [All operations](https://skmtc.net/ministrybytext/apis/pbt-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ministrybytext/pbt-api-documentation/versions/ca6e9c8f430d/schema)
