---
title: "Update stock attributes"
method: PUT
path: "/api/v1/stocks/{id}"
tags: ["Stocks"]
---

# Update stock attributes

`PUT /api/v1/stocks/{id}`

## Path parameters

- `id` integer, required

## Request body

- UpdateStock
  - `token` string, required
  - `item` object
    - `name` string — the stock name
    - `storage_id` integer — type of storages: 1 - Room, 21 - Shelf, 61 - Closet, 81 - Drawer, 111 - Cage, 120 - Refrigerator ,121 - Freezer, 181 - Rack Cell , 201 - Cryo container, 251 - Slide Rack, 261 - Rack Cell, 322 - Rack, 323 - Rack Cell, 321 - Other
    - `storage_type` string — storage class name - [Box - System::Storage::Box] [all other storages type - System::Storage::Storage]
    - `stockable_type` string — class name of the stockable item type, such as: Biocollections::Antibody
    - `stockable_id` integer — stockable item id
    - `location_in_box` integer — if storage is grid box, indicates numerical location in box
    - `owner_id` integer — id of the owner - by default it's your member id
    - `expiration_date` string, date — in the following format: yyyy-mm-dd
    - `lot` string — number of batch
    - `description` string — general description
    - `barcode` string — barcode
    - `stored_by` integer — member id
    - `concentration` string — concentration
    - `concentration_prefix` string — x10^/E^
    - `concentration_unit_id` integer — 9-mg/mL, 10-g/L, 11-M, 12-mM, 13-µM, 14-µg/mL, 15-ng/µL, 16-ratio, 17-%, 18-g/mL
    - `concentration_exponent` integer — concentration exponent
    - `concentration_remarks` string — concentration remarks
    - `volume` string — volume
    - `volume_prefix` string — x10^/E^
    - `volume_unit_id` integer — 6-L, 7-mL, 8-µL
    - `volume_exponent` integer — volume exponent
    - `volume_remarks` string — volume remarks
    - `weight` string — weight
    - `weight_prefix` string — x10^/E^
    - `weight_unit_id` integer — 1 -Kg, 2-g, 3-mg, 4-µg, 5-ng
    - `weight_exponent` integer — weight exponent
    - `weight_remarks` string — weight remarks

## Response `200`

stock updated

## Other responses

- `401` — Error: Unauthorized
- `422` — invalid request - Name cannot be blank

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
