---
title: "Item - Add Barcode"
method: POST
path: "/item/add_barcode"
tags: ["item"]
---

# Item - Add Barcode

`POST /item/add_barcode`

Add a barcode to an existing item.

## Request body

- object
  - `item_id` string, required — Item ID
  - `upc` string, required — Barcode to add

## Response `200`

Barcode added

- object
  - `success` boolean, required — Whether the operation succeeded

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden. Insufficient permissions.
- `429` — Too many requests. Rate limit exceeded.
- `500` — Internal server error.

## Changes

> 13 revisions in range; 1 could not be searched.

- **2026-03-02** `fa53dd949b8e` — 2 breaking, 7 info
  - the request property `item_id` became required
  - the request property `upc` became required
  - api operation id `post_item_add_barcode` was added
  - added the media type `application/json` for the response with the status `200`
  - …5 more
- **2024-04-23** `e4bdf6984278` — 1 breaking
  - the `upc` request property type/format changed from `number`/`integer` to `string`/``
- **2024-04-22** `08cd9cfa14dd` — 1 breaking, 2 warning, 2 info
  - added required request body
  - deleted the `query` request parameter `item_id`
  - deleted the `query` request parameter `upc`
  - added the non-success response with the status `400`
  - …1 more
- **2024-04-19** `46ceda528000` — 2 breaking, 8 info
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `post_item_add_barcode` removed and replaced with ``
  - added the new optional `query` request parameter `item_id`
  - …6 more

[Change history](https://skmtc.dev/skulabs/apis/skulabs-api/changes/item/add_barcode/post.md)

---

[API](https://skmtc.dev/skulabs/apis/skulabs-api.md) · [All operations](https://skmtc.dev/skulabs/apis/skulabs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/skulabs/skulabs-api/revisions/4b5ec0ed78a6/schema)
