---
title: "Update Public Inventory"
method: PUT
path: "/v2/public/inventories/{inventory_id}"
tags: ["inventories"]
---

# Update Public Inventory

`PUT /v2/public/inventories/{inventory_id}`

## Request

- Base URL: `https://api.sanka.com`
- URL: `https://api.sanka.com/v2/public/inventories/{inventory_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sankahq/apis/sanka-public-api/docs/v2/public/inventories/:inventory_id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `inventory_id` string, required

## Query parameters

- `external_id` string, nullable
- `workspace_id` string, nullable

## Headers

- `X-Workspace-Code` string

## Request body

- PublicObjectRecordMutationRequest
  - `view_id` string, nullable
  - `form_view_id` string, nullable
  - `properties` object
  - `target` string, nullable
  - `provider` string, nullable
  - `channel_id` string, nullable
  - `external_object_type` string, nullable
  - `external_id` string, nullable
  - `operation` string, nullable
  - `dry_run` boolean
  - `confirm` boolean

## Response `200`

Successful Response

- UpdatePublicInventoryApiV2PublicInventoriesInventoryIdPut200Envelope
  - `success` true, required
  - `data` object, required
  - `meta` EnvelopeMeta, required
    - `ctx_id` string, required
    - `pagination` PaginationMeta
      - `page` integer, required
      - `page_size` integer, required
      - `total` integer, required
      - `next_cursor` string, nullable
    - `toast` ToastMessage
      - `variant` 'success' | 'error' | 'info' | 'warning', required
      - `code` string, required
      - `message` string, required
      - `i18n` ToastMessageI18n, required
        - `en` string, required
        - `ja` string, required

## Other responses

- `401`: Error response
- `422`: Error response

## Changes

- **2026-07-06** `6ce94a6be72c`: 6 info
  - added the optional property `meta/pagination/next_cursor` to the response with the `200` status
  - added the optional property `meta/pagination/next_cursor` to the response with the `401` status
  - added the optional property `meta/pagination/next_cursor` to the response with the `422` status
  - added the optional property `meta/toast` to the response with the `200` status
  - …2 more
- **2026-06-10** `9099b22c3aae`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sankahq/apis/sanka-public-api/changes/v2/public/inventories/:inventory_id/put.md)

---

[API](https://skmtc.dev/sankahq/apis/sanka-public-api.md) - [All operations](https://skmtc.dev/sankahq/apis/sanka-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sankahq/apis/sanka-public-api/revisions/16f03a9e3ab9?raw)
