---
title: "POST /news/types"
method: POST
path: "/news/types"
---

# POST /news/types

`POST /news/types`

## Request

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

Create a news article type

## Request body `*/*`

- object
  - `name` string, required: The name of the type
  - `alias` string: A URL-friendly alias for the type. If none provided, one will be generated from the `name`.
  - `tagresources` integer: Allow articles to tag resources
  - `tagusers` integer: Allow articles to tag users
  - `location` integer: Allow articles to set location
  - `future` integer: Allow articles to set future
  - `ongoing` integer: Allow articles to set ongoing
  - `url` integer: A URL associated with the news article
  - `parentid` integer: Parent type ID
  - `state` string: Default filter for listings
  - `order_dir` string: Default sorting direction for listings

## Response `200`

Successful entry creation

## Other responses

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