---
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> `/languages/{LANG_ID}`

指定された言語の情報を更新するには、`/api/languages/{LANG_ID}`に対してPUTを送信します。`{LANG_ID}`は、言語のIDです。

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

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

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

## PATH パラメータ

| Name      | Type    | 説明    |
| --------- | ------- | ----- |
| `LANG_ID` | integer | 言語のID |

## リクエスト：ボディ

| Name           | Type   | 必須 | 説明                  |
| -------------- | ------ | -- | ------------------- |
| `lang_code`    | string | 必須 | 言語コード（例：ja）         |
| `name`         | string | 必須 | 言語の名称               |
| `status`       | string |    | `A` 有効 `H`非表示 `D`無効 |
| `country_code` | string |    | 国コード（例：JP）          |

## レスポンス

### 200

```json
{}
```

### 400

```json
{}
```

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