---
title: "Update message template by id"
method: PATCH
path: "/message-templates/{id}"
tags: ["messageTemplates"]
---

# Update message template by id

`PATCH /message-templates/{id}`

Employees with location restrictions can only update templates with location_ids within their assigned locations.

## Path parameters

- `id` integer, required

## 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
- `404` — Not found error
- `default` — An unknown, unexpected error.

---

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