---
title: "Upsert Size"
method: PUT
path: "/api/product-sizes/{chain_id}"
tags: ["Product Sizes"]
---

# Upsert Size

`PUT /api/product-sizes/{chain_id}`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/product-sizes/{chain_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

State a product's size, or state that it has none.

## Path parameters

- `chain_id` integer, required

## Request body

- SizeUpsert
  - `product_name` string, required
  - `platform` string, nullable
  - `shelf` string, nullable
  - `amount` union
    - number
    - string
  - `unit` 'ml' | 'cl' | 'l' | 'floz' | 'g' | 'kg' | 'cm' | 'mm' | 'pcs', nullable
  - `no_size` boolean
  - `source_note` string, nullable

## Response `200`

Successful Response

- SizeEntryResponse
  - `chain_id` integer, required
  - `product_name` string, required
  - `normalized_name` string, required
  - `platform` string
  - `shelf` string
  - `amount` number, nullable
  - `unit` string, nullable
  - `no_size` boolean, required
  - `source_note` string, nullable
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
