---
title: "Update Group Template"
method: PUT
path: "/orgunit/{orgunitId}/groups/{groupId}/templates"
tags: ["Group"]
---

# Update Group Template

`PUT /orgunit/{orgunitId}/groups/{groupId}/templates`

## Request

- Base URL: `https://api-docs.ministrybytext.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.ministrybytext.com/orgunit/{orgunitId}/groups/{groupId}/templates`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/docs/orgunit/:orgunitId/groups/:groupId/templates/put.ts> (a function with typed inputs; its response is checked against the schema)

Modifies the details of an existing group-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

- `orgunitId` string, required
- `groupId` 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.dev/ministrybytext/apis/pbt-api-documentation.md) - [All operations](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/revisions/7d64a1f0b0c3?raw)
