---
title: "Creates a new message template"
method: POST
path: "/message-templates"
tags: ["messageTemplates"]
---

# Creates a new message template

`POST /message-templates`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/message-templates`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/message-templates/post.ts> (a function with typed inputs; its response is checked against the schema)

When an employee creates a template, it's owned by their dealer.
Employees with location restrictions must specify location_ids within their assigned locations.

## Request body

- Template
  - `can_delete` boolean
  - `can_edit` boolean
  - `content` string
  - `created` string
  - `deleted` boolean
  - `id` integer
  - `location_ids` integer[]
  - `title` string
  - `updated` string
  - `user_id` integer

## Response `200`

HTTP status code 200 and conversation model

- Template
  - `can_delete` boolean
  - `can_edit` boolean
  - `content` string
  - `created` string
  - `deleted` boolean
  - `id` integer
  - `location_ids` integer[]
  - `title` string
  - `updated` string
  - `user_id` integer

## Other responses

- `400` (unresolved $ref)
- `401`: Unauthorized error
- `403`: Forbidden error
- `default`: An unknown, unexpected error.

---

[API](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation.md) - [All operations](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/revisions/f0cf8f605ea0?raw)
