---
title: "POST /mail"
method: POST
path: "/mail"
---

# POST /mail

`POST /mail`

## Request

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

Create a new entry

## Request body `*/*`

- object
  - `name` string: Short label for templates
  - `subject` string, required: 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 `201`

Successful entry creation

## Other responses

- `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)
