---
title: "PUT /mailer/{id}"
method: PUT
path: "/mailer/{id}"
---

# PUT /mailer/{id}

`PUT /mailer/{id}`

## Request

- Base URL: `https://www.rcac.purdue.edu/api`
- URL: `https://www.rcac.purdue.edu/api/mailer/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/purdue/apis/rcac-api/docs/mailer/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an entry

## Path parameters

- `id` integer, required

## Request body `*/*`

- object
  - `name` string: Short label for templates
  - `subject` string: Message subject
  - `body` string: Message contents, formatted using MarkDown
  - `template` integer: If the message is a template or not
  - `alert` string: An alert level to use for styling HTML portions of emails

## Response `202`

Successful entry modification

## Other responses

- `404`: Record not found
- `409`: Invalid data

---

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