---
search:
  tags:
    - 在庫
    - POST
seo:
  description: 同じ拠点内の有効な棚へ移します。同じ棚ならmoved=false。別拠点はdifferent_siteで拒否され、transfersを使います。…
sidebar:
  label: 同じ拠点内で棚を移動する
  badge: POST
title: 同じ拠点内で棚を移動する
type: openapi-operation
---
同じ拠点内の有効な棚へ移します。同じ棚ならmoved=false。別拠点はdifferent_siteで拒否され、transfersを使います。 inventory:readに加え、この操作のスコープと許可したメンバーのinventory.write権限が必要です。

`POST /inventory/items/{id}/move`

**Request body** (`application/json`, required)

- `toLocationId` (string<uuid>, required)
- `reason` (string, required)

Request body example:

```json
{
  "toLocationId": "e81ad314-9cb9-45ae-9ad9-f1b5ebcc7aae",
  "reason": "string"
}
```

**Responses**

- `200` — 成功
- `400` — \`invalid\_request\`。パラメーターが正しくありません。
- `401` — \`invalid\_token\`。トークンがない、期限切れ、または別のリソース向けです。
- `403` — \`insufficient\_scope\`、\`connection\_revoked\`、\`client\_disabled\`、\`forbidden\` のいずれかです。
- `404` — \`not\_found\`
- `409` — 競合・requestIdの流用・受取未確認
- `422` — 現在の状態・対象・値では実行できません。errorと対象IDを確認します。

Response example, 200:

```json
{
  "moved": true,
  "item": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "assetNumber": "string",
    "sourceKind": "purchase",
    "status": "string",
    "version": 0,
    "siteId": "60189e9c-7d12-438c-b9ca-6998d9c364b1",
    "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54",
    "grade": {
      "serviceCode": "string",
      "serviceName": "string",
      "serviceKind": "third_party",
      "code": "string",
      "label": "string",
      "numericScore": 0
    },
    "certificationNumber": "string",
    "certificationVerified": true,
    "conditionNote": "string",
    "acquisitionAmountMinor": 0,
    "currency": "string",
    "acquiredAt": "2019-08-24T14:15:22Z",
    "lastMovedAt": "2019-08-24T14:15:22Z",
    "allocation": "yours",
    "holdable": true,
    "commitment": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "purpose": "oripa",
      "label": "string",
      "externalRef": "string"
    },
    "marketValue": {
      "amountMinor": 0,
      "currency": "JPY",
      "pricedAt": "2019-08-24T14:15:22Z"
    },
    "conditionTags": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      }
    ],
    "photos": {
      "front": {
        "url": "http://example.com",
        "updatedAt": "2019-08-24T14:15:22Z"
      },
      "back": {
        "url": "http://example.com",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    },
    "card": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "localizedNames": {
        "property1": "string",
        "property2": "string"
      },
      "cardNumber": "string",
      "languageCode": "string",
      "variant": "string",
      "finish": "string",
      "imageUrl": "string",
      "rarity": {
        "code": "string",
        "name": "string"
      },
      "set": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "code": "string",
        "name": "string",
        "nameEn": "string"
      },
      "game": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "code": "string",
        "name": "string"
      }
    }
  }
}
```
