---
title: "Create MessageTemplatePartial"
method: POST
path: "/messageTemplatePartials"
tags: ["messageTemplatePartials"]
---

# Create MessageTemplatePartial

`POST /messageTemplatePartials`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/messageTemplatePartials`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lumahealth/apis/rest-service/docs/messageTemplatePartials/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- MessageTemplatePartialsCreate
  - `_id` string: Luma's internal ID of an object.
  - `user` string: The ID of the root account user.
  - `name` string, required
  - `template` string, required
  - `type` 'campaign' | 'digital-call-deflection' | 'generic'
  - `subType` 'digital-call-deflection-appointment-management' | 'digital-call-deflection-initiated-text' | 'digital-call-deflection-error' | 'digital-call-deflection-luma-bot' | 'digital-call-deflection-main-menu' | 'digital-call-deflection-other' | 'digital-call-deflection-patient-verification' | 'digital-call-deflection-redirect' | 'digital-call-deflection-scheduling' | 'digital-call-deflection-sub-menu' | 'digital-call-deflection-third-party-link'

## Response `200`

Successful creation

- MessageTemplatePartialsResponse
  - `deleted` 0 | 1: Flag for logical deletion where 1 means deleted.
  - `createdBy` string: The ID of the user who created this object.
  - `updatedBy` string: The ID of the user who updated this object.
  - `deletedBy` string: The ID of the user who deleted this object.
  - `createdAt` string, date-time: The date/time when this object was created.
  - `updatedAt` string, date-time: The date/time when this object was updated.
  - `deletedAt` string, date-time: The date/time when this object was deleted.
  - `_id` string: Luma's internal ID of an object.
  - `user` string: The ID of the root account user.
  - `name` string
  - `template` string
  - `type` 'campaign' | 'digital-call-deflection' | 'generic'
  - `subType` 'digital-call-deflection-appointment-management' | 'digital-call-deflection-initiated-text' | 'digital-call-deflection-error' | 'digital-call-deflection-luma-bot' | 'digital-call-deflection-main-menu' | 'digital-call-deflection-other' | 'digital-call-deflection-patient-verification' | 'digital-call-deflection-redirect' | 'digital-call-deflection-scheduling' | 'digital-call-deflection-sub-menu' | 'digital-call-deflection-third-party-link'

## Other responses

- `401`: Not authenticated
- `403`: Access token does not have the required scope
- `default`: Unexpected error

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
