---
title: "/components/:id"
method: PUT
path: "/components/{id}"
---

# /components/:id

`PUT /components/{id}`

## Request

- Base URL: `https://develop.snipeitapp.com/api/v1`
- URL: `https://develop.snipeitapp.com/api/v1/components/{id}`
- Auth: none required

Updates a component

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string, required
  - `qty` integer, required
  - `category_id` integer, required
  - `location_id` integer
  - `company_id` integer
  - `order_number` string
  - `purchase_date` string, date
  - `purchase_cost` number, float
  - `min_amt` integer
  - `serial` string

## Response `200`

200

- object

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `938bea5e8375`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/snipeitapp/apis/snipe-it-rest-api/changes/components/:id/put.md)

---

[API](https://skmtc.dev/snipeitapp/apis/snipe-it-rest-api.md) - [All operations](https://skmtc.dev/snipeitapp/apis/snipe-it-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/snipeitapp/apis/snipe-it-rest-api/revisions/938bea5e8375?raw)
