Skip to main content
PUT
/
2023-11
/
admin
/
stocks
/
{id}
Update
curl --request PUT \
  --url https://api-staging.genuka.com/2023-11/admin/stocks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Taro - 1 (updated)"
}
'
{
  "company_id": "01hqydxwtxdj3kmzp3bz7jk73g",
  "created_at": "2025-10-10T15:12:53.000000Z",
  "id": "01k77ax6n3vcmxbyt0env1zkar",
  "medias": [],
  "price": null,
  "product_variant": null,
  "product_variant_compositions": [],
  "product_variant_id": null,
  "quantity": 50,
  "quantity_alert": 5,
  "stocks_warehouse": [
    {
      "batch_number": null,
      "created_at": "2025-10-10T15:12:53.000000Z",
      "expiration_date": null,
      "id": "1742",
      "metadata": null,
      "production_date": null,
      "quantity": 50,
      "stock_id": "01k77ax6n3vcmxbyt0env1zkar",
      "updated_at": "2025-10-10T15:12:53.000000Z",
      "warehouse_id": "01k1amyq271bm81tncbepdxa2j"
    }
  ],
  "title": "Taro - 1 (updated)",
  "updated_at": "2025-10-10T15:15:35.000000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-company
string
Example:

"{{companyId}}"

Path Parameters

id
string
required

Body

application/json
title
string
Example:

"Taro - 1 (updated)"

Response

200 - application/json

200

company_id
string
Example:

"01hqydxwtxdj3kmzp3bz7jk73g"

created_at
string
Example:

"2025-10-10T15:12:53.000000Z"

id
string
Example:

"01k77ax6n3vcmxbyt0env1zkar"

medias
any[]
Example:
[]
price
unknown
product_variant
unknown
product_variant_compositions
any[]
Example:
[]
product_variant_id
unknown
quantity
number
Example:

50

quantity_alert
number
Example:

5

stocks_warehouse
object[]
Example:
[
{
"batch_number": null,
"created_at": "2025-10-10T15:12:53.000000Z",
"expiration_date": null,
"id": "1742",
"metadata": null,
"production_date": null,
"quantity": 50,
"stock_id": "01k77ax6n3vcmxbyt0env1zkar",
"updated_at": "2025-10-10T15:12:53.000000Z",
"warehouse_id": "01k1amyq271bm81tncbepdxa2j"
}
]
title
string
Example:

"Taro - 1 (updated)"

updated_at
string
Example:

"2025-10-10T15:15:35.000000Z"