---
title: "POST /storage/purchases"
method: POST
path: "/storage/purchases"
---

# POST /storage/purchases

`POST /storage/purchases`

## Request

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

Create an entry

## Request body `*/*`

- object
  - `resourceid` integer, required: Resource ID
  - `groupid` integer, required: ID of group making the purchase
  - `sellergroupid` integer, required: ID of seller group
  - `datetimestart` string, required: Timestamp for when the purchase starts
  - `datetimestop` string: Timestamp for when the purchase stops
  - `bytes` integer, required: Amount of space in bytes being purchases
  - `comment` string: Comments/notes

## Response `201`

Successful entry creation

## Other responses

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