---
title: "PUT /storage/purchases/{id}"
method: PUT
path: "/storage/purchases/{id}"
---

# PUT /storage/purchases/{id}

`PUT /storage/purchases/{id}`

## Request

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

Update an entry

## Path parameters

- `id` integer, required

## Request body `*/*`

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

## Response `202`

Successful entry modification

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