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

# POST /pages

`POST /pages`

## Request

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

Create an entry

## Request body `*/*`

- object
  - `title` string, required: Title
  - `slug` string: URL slug
  - `content` string, required: Content
  - `state` integer: Published state
  - `access` integer: Access level
  - `publish_up` string: Start publishing (defaults to created time)
  - `publish_down` string: Stop publishing
  - `parent_id` integer: Parent page ID

## Response `201`

Successful entry creation

## Other responses

- `401`: Unauthorized
- `422`: 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)
