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

# POST /courses

`POST /courses`

## Request

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

Create a new entry

## Request body `*/*`

- object
  - `crn` string: Course CRN
  - `classname` string, required: Class name
  - `coursenumber` string: Course number
  - `userid` integer: Owner user ID
  - `groupid` integer: Group ID
  - `resourceid` integer, required: Resource ID
  - `deptartment` string: Department ID
  - `datetimestart` string, required: Start date of the entry
  - `datetimestop` string, required: End date of the entry

## Response `201`

Successful entry creation

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