---
title: "PUT /news/types/{id}"
method: PUT
path: "/news/types/{id}"
---

# PUT /news/types/{id}

`PUT /news/types/{id}`

## Request

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

Update a news article type

## Path parameters

- `id` integer, required

## Request body `*/*`

- object
  - `name` string: 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 modification

## Other responses

- `404`: Record not found

---

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