---
title: "商品の更新"
---

> Documentation Index
> Fetch the complete documentation index at: https://apidocs.cs-cart.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# 商品の更新

<span class="api-method api-method-put">`PUT`</span> `/products/{PRODUCT_ID}`

指定された商品の詳細を更新するには、`/api/products/{PRODUCT_ID}`エンドポイントにPUTリクエストを送信します。

## リクエスト：ヘッダー

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Basic <認証情報>`     |

> **認証情報について**
>
> 認証情報は、ユーザーのEメールアドレスとAPIキーをコロンで連結したものをBase64エンコードしたものです。

## PATH パラメータ

| Name         | Type  | 説明   |
| ------------ | ----- | ---- |
| `PRODUCT_ID` | `int` | 商品ID |

## リクエスト：ボディ

| Name                    | Type            | 必須 | 説明                | デフォルト値 |
| ----------------------- | --------------- | -- | ----------------- | ------ |
| product                 | string          | 必須 | 商品名               |        |
| category\_ids           | array of int32s | 必須 | カテゴリID            |        |
| main\_category          | array           | 必須 | メインカテゴリ           |        |
| price                   | float           | 必須 | 価格                |        |
| status                  | string          | 必須 | ステータス             |        |
| amount                  | int32           | 必須 | 在庫数               |        |
| avail\_since            | date-time       |    | 入荷日               |        |
| box\_height             | int32           |    | 箱の高さ              |        |
| box\_length             | int32           |    | 箱の長さ              |        |
| box\_width              | int32           |    | 箱の幅               |        |
| default\_layout         | string          |    | デフォルトレイアウト        |        |
| edp\_shipping           | string          |    | 配送の無い商品 Y/N       | N      |
| exceptions\_type        | string          |    | コンビネーションの設定方法 A/F | F      |
| feature\_comparison     | string          |    |                   | N      |
| free\_shipping          | string          |    | 無料配送かどうか          | N      |
| full\_description       | string          |    | 詳細説明              |        |
| image\_pairs            | array           |    | 商品画像              |        |
| is\_edp                 | string          |    | EDP商品かどうか         | N      |
| lang\_code              | string          |    | 言語コード             |        |
| list\_price             | float           |    | リスト価格             |        |
| list\_qty\_count        | int32           |    | リスト数量             |        |
| localization            | string          |    | ローカライゼーション        |        |
| low\_avail\_limit       | string          |    | 在庫数通知の下限          |        |
| main\_pair              | array           |    | メイン画像             |        |
| max\_items\_in\_box     | int32           |    | 箱の最大商品数           |        |
| max\_qty                | int32           |    | 最大数量              |        |
| meta\_description       | string          |    | メタ説明              |        |
| meta\_keywords          | string          |    | メタキーワード           |        |
| min\_items\_in\_box     | string          |    | 箱の最小商品数           |        |
| min\_qty                | int32           |    | 最小数量              |        |
| options\_type           | string          |    | オプションタイプ          | P      |
| out\_of\_stock\_actions | string          |    | 在庫切れ時のアクション       | N      |
| age\_limit              | int32           |    | 年齢制限              |        |
| page\_title             | string          |    | ページタイトル           |        |
| point\_price            | float           |    | ポイント価格            |        |
| popularity              | int32           |    | 人気度               |        |
| product\_code           | string          |    | 商品コード             |        |
| product\_features       | string          |    | 商品の追加情報           |        |
| promo\_text             | string          |    | プロモーションテキスト       |        |
| qty\_step               | int32           |    | 数量ステップ            | 0      |
| return\_period          | int32           |    | 返品期間              | 10     |
| sales\_amount           | int32           |    | 販売数量              |        |
| seo\_name               | string          |    | SEO名              |        |
| shared\_product         | string          |    | 共有商品かどうか          | N      |
| shipping\_freight       | float           |    | 配送料               |        |
| short\_description      | string          |    | 短い説明              |        |
| tax\_ids                | string          |    | 税金ID              |        |
| tracking                | string          |    | トラッキング O/B/D      | B      |
| unlimited\_download     | string          |    | ダウンロードを無制限にするかどうか | N      |
| usergroup\_ids          | string          |    | ユーザーグループID        |        |
| weight                  | float           |    | 重量                |        |
| zero\_price\_action     | string          |    | 価格がゼロの時のアクション     |        |

## レスポンス

### 200

```json
{
  "product_id": 162
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/products/api-product-update/index.mdx
