---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/reference/content/updateContentSizeTables.md
  - https://yandex.com/dev/market/partner-api/doc/ru/reference/content/updateContentSizeTables.md
  - https://yandex.com/dev/market/partner-api/doc/zh/reference/content/updateContentSizeTables.md
  - href: https://yandex.com/dev/market/partner-api/doc/en/reference/content/updateContentSizeTables.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/market/partner-api/doc/en/llms.txt?revision=r22228850
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/market/partner-api/doc/en/llms.txt?revision=r22228850


<!-- source: en/api/content/updateContentSizeTables.md -->
<div class="openapi">

# Updating size tables

<!-- markdownlint-disable-file -->

{% list tabs %}

- Info

  
  <!-- source: en/_auto/method_scopes/updateContentSizeTables.md -->
  **The method is available for [all models](https://yandex.com/dev/market/partner-api/doc/en/overview/business.md).**

  {% cut "**If you are using an API Key token, one of the accesses in the list is required to call the method**" %}

  * offers-and-cards-management — [Manage products and cards](https://yandex.com/dev/market/partner-api/doc/en/_auto/scopes_summary/pages/offers-and-cards-management.md)
  * all-methods — Full account management

  {% endcut %}
  <!-- endsource: en/_auto/method_scopes/updateContentSizeTables.md -->
  
  
  Completely replaces the names and contents of the size tables created by the business. In one request, you can update
  up to 10 tables with a total of 5,000 cells. If there are more tables or cells, the request is rejected.
  with an error `BAD_REQUEST` and not a single table is updated.
  
  
  {% note warning "Передавайте полное содержимое таблицы" %}
  
  
  All missing rows and columns will be deleted.
  
  
  {% endnote %}
  
  
  Only tables created by the business can be changed., — they have a method in their response
  `POST v2/businesses/{businessId}/size-tables` specified `editable: true`. If there is no table, it returns
  mistake `NOT_FOUND` if this is a Market table (`sizeTableType: STANDARD`) — mistake `FORBIDDEN`.
  
  The size characteristic of the table cannot be changed: columns and values are checked according to the characteristic specified
  when creating the table. Dimensional grids and measurements that can be used in the table, their values and mandatory
  grids returns the method `POST v2/businesses/{businessId}/size-tables/charts`.
  
  Table IDs should not be repeated in a single query. If they repeat, the request is rejected.
  with an error `BAD_REQUEST` and not a single table is updated.
  
  
  {% cut "Как заполнить таблицу" %}
  
  
  
  <!-- source: en/_includes/common/size-tables-filling.md -->
  Each element `rows` — table row: one size in all size grids and dimensions. In `values`
  pass one cell per column: the grid or measurement ID in `sizeChartId` or the name
  in `sizeChartName` and the value in `sizeValueId`, `sizeValue` or in both fields. You can skip or transfer a cell without a value.
  with an empty `sizeValue` — it will be saved as "no value".

  Requirements for the table:

  * The table must have at least one mandatory size grid (`required: true`), otherwise the error will return
    `ABSENT_MANDATORY_SIZE_CHART`. Measurements and grids with `required: false` this requirement is not fulfilled.
  * Fill in every required grid in the table in all rows, otherwise an error will be returned. `EMPTY_CELL`.
  * Each column must have at least one value, except for the empty one and "no value", otherwise an error will be returned.
    `NONE_COLUMN`. If there is nothing to fill the column with, do not transfer its cells.
  * The strings must not match, otherwise an error will be returned. `DUPLICATE_ROWS`. Are the values in the column allowed to be repeated?
    (`DUPLICATE_SIZES`, `DUPLICATE_MEASURES`), depends on the dimensional characteristics.
  <!-- endsource: en/_includes/common/size-tables-filling.md -->
  
  
  
  {% endcut %}
  
  
  
  {% cut "Чем сохраненная таблица отличается от переданной" %}
  
  
  
  <!-- source: en/_includes/common/size-tables-saved-differences.md -->
  Method `POST v2/businesses/{businessId}/size-tables` returns a table by column: for each value
  there is a line number `rowIndex`. To get the rows, group the values by `rowIndex`.

  The saved table may differ from the transmitted one:

  * the rows and columns go in the order that the Market sets, and `rowIndex` does not match the line number in the request.
  * the standard size grids return the text values from the reference book and its `sizeValueId`;
  * Commas are replaced with dots in measurements.: `42,5` → `42.5`;
  * cells with "no value" and non-transmitted cells are not returned;
  * The spaces at the beginning and at the end of the name and values have been removed.
  <!-- endsource: en/_includes/common/size-tables-saved-differences.md -->
  
  
  The values from the response can be passed to this method without modification: fields `columnType` and `rowIndex` it does not take into account.
  
  
  {% endcut %}
  
  
  
  {% note warning "Сохраняется содержимое из последнего запроса" %}
  
  
  The versions of the table are not compared. If the table was changed in the cabinet after you received it,
  these changes will be overwritten without warning. Mistake `CONCURRENT_MODIFICATION` it is returned only if
  the table was changed during the processing of your request. In this case, repeat the request.
  
  
  {% endnote %}
  
  
  The new contents of the table are applied to the products linked to it automatically after a while.
  You do not need to transfer the goods again.
  
  If the query fails with the 5xx code, it can be repeated: the tables will be replaced with the same contents.
  
  
  <!-- source: en/_auto/method_limits/updateContentSizeTables.md -->
  |<div style="text-align: left;">**⚙️ Limit without subscription:** 5 requests per minute<br>**⭐️ [Limit with Medium subscription](https://yandex.ru/support/marketplace/ru/marketing/subscription):** 10 requests per minute</div>|
  |-|
  <!-- endsource: en/_auto/method_limits/updateContentSizeTables.md -->
  
  
  
  ## Request
  
  <div class="openapi__requests">
  
  <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">
  
  <div class="openapi__request">
  
  POST {.openapi__method}
  ```text translate=no
  https://api.partner.market.yandex.ru/v2/businesses/{businessId}/size-tables/update
  ```
  
  </div>
  
  </div>
  
  </div>
  
  ### Path parameters
  
  #|
  || **Name** | **Description** ||
  ||
  
  _businessId_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: integer
  
  Cabinet ID.
  
  
  
  
  To find out, use the request [GET v2/campaigns](https://yandex.com/dev/market/partner-api/doc/en/reference/campaigns/getCampaigns.md).
  
  ℹ️ [What is a cabinet and a store on the Market?](https://yandex.ru/support/marketplace/account/introduction.html)
  
  
  
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "sizeTables": [
      {
        "sizeTableId": 1,
        "sizeTableName": "example",
        "rows": [
          {
            "values": [
              null
            ]
          }
        ]
      }
    ]
  }
  ```
  
  {% endcut %}
  
  #|
  || **Name** | **Description** ||
  ||
  
  _sizeTables_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  {% cut "**Type**: object[]" %}
  
  #|
  ||
  
  _rows_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  {% cut "**Type**: object[]" %}
  
  #|
  ||
  
  _values_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  {% cut "**Type**: object[]" %}
  
  #|
  ||
  
  _sizeChartId_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: integer
  
  ID of the dimension grid or measurement from the method response `POST v2/businesses/{businessId}/size-tables/charts`.
  Grids and measurements have a common identifier space. Required if not transmitted `sizeChartName`.
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  ||
  
  _sizeChartName_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: string
  
  The name of the dimensional grid or measurement from the method's response `POST v2/businesses/{businessId}/size-tables/charts`.
  It is compared case-insensitively and with spaces at the beginning and at the end. Required if not transmitted `sizeChartId`.
  
  
  _Min length:_{.json-schema-reset .json-schema-assertion} `1`
  
  _Max length:_{.json-schema-reset .json-schema-assertion} `255`
  
  _Example:_{.json-schema-reset .json-schema-example} `example`
  {.table-cell}
  ||
  ||
  
  _sizeValue_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: string
  
  The value of the size or measurement. In columns without a directory — no longer than 20 characters.
  
  
  _Max length:_{.json-schema-reset .json-schema-assertion} `255`
  
  _Example:_{.json-schema-reset .json-schema-example} `example`
  {.table-cell}
  ||
  ||
  
  _sizeValueId_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: integer
  
  ID of the value from the dimensional grid reference. Only the standard size grids of the Market have a reference book.
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  {% endcut %}
  
  The cells are rows in any order. Each dimension grid or measurement — no more than once per line,
  otherwise, the error will return `INVALID_REQUEST`.
  
  A cell without a value can be omitted or passed with an empty one. `sizeValue`: it will be saved
  like "no value". This is an error in the mandatory size grid. `EMPTY_CELL`.
  
  
  _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
  _Max items:_{.json-schema-reset .json-schema-assertion} `50`
  
  {% cut "**Example**" %}{.json-schema-example}
  
  ```json translate=no
  [
    {
      "sizeChartId": 1,
      "sizeChartName": "example",
      "sizeValueId": 1,
      "sizeValue": "example"
    }
  ]
  ```
  
  {% endcut %}
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  {% endcut %}
  
  All rows in the table: each row describes one size. Rows and columns that are not in the query are deleted.
  When saving, the row order may change.
  
  
  _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
  _Max items:_{.json-schema-reset .json-schema-assertion} `200`
  
  {% cut "**Example**" %}{.json-schema-example}
  
  ```json translate=no
  [
    {
      "values": [
        {
          "sizeChartId": 1,
          "sizeChartName": "example",
          "sizeValueId": 1,
          "sizeValue": "example"
        }
      ]
    }
  ]
  ```
  
  {% endcut %}
  {.table-cell}
  ||
  ||
  
  _sizeTableId_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: integer
  
  ID of the size table created by the business.
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  ||
  
  _sizeTableName_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: string
  
  The new name of the size chart. The spaces at the beginning and at the end are deleted. The name consists of only spaces —
  mistake `INVALID_REQUEST`.
  
  
  _Min length:_{.json-schema-reset .json-schema-assertion} `1`
  
  _Max length:_{.json-schema-reset .json-schema-assertion} `256`
  
  _Example:_{.json-schema-reset .json-schema-example} `example`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  {% endcut %}
  
  Size tables with new content. They are processed in order, each independently of the others.
  
  Table IDs should not be repeated in a single query. If the IDs are repeated,
  the request is not being processed.
  
  In total, in all tables — no more than 5000 cells. If there are more cells, the request is not processed.
  
  
  _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
  _Max items:_{.json-schema-reset .json-schema-assertion} `10`
  
  {% cut "**Example**" %}{.json-schema-example}
  
  ```json translate=no
  [
    {
      "sizeTableId": 1,
      "sizeTableName": "example",
      "rows": [
        {
          "values": [
            {}
          ]
        }
      ]
    }
  ]
  ```
  
  {% endcut %}
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  </div>
  
  ## Responses
  
  <div class="openapi__response__code__200">
  
  ## 200 OK
  
  The results of updating the tables in the query order.
  
  If at least one table could not be updated, the field `status` takes the value `ERROR`.
  The remaining tables are processed and saved.
  
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "result": {
      "results": [
        {
          "sizeTableId": 0,
          "sizeTableName": "example",
          "errors": [
            null
          ]
        }
      ]
    }
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
  - {% cut "**Type**: object" %}
  
    #|
    ||
  
    _status_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    **Type**: string
  
    The type of response.
    Possible values:
    * `OK` — There are no errors.
    * `ERROR` — an error occurred while processing the request.
  
  
    _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    The standard wrapper for server responses.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK"
    }
    ```
  
    {% endcut %}
  
  - {% cut "**Type**: object" %}
  
    #|
    ||
  
    _result_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    {% cut "**Type**: object" %}
  
    #|
    ||
  
    _results_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    {% cut "**Type**: object[]" %}
  
    #|
    ||
  
    _errors_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    {% cut "**Type**: object[]" %}
  
    #|
    ||
  
    _code_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    **Type**: string
  
    Error code for saving the size chart:
  
    * `INVALID_REQUEST` — the table structure is broken: the name consists of only spaces, the cell without `sizeChartId`
      and `sizeChartName` (`rowIndex`), repeat column in row, cell without `sizeValueId` and `sizeValue` or a cell,
      in which `sizeChartName` doesn't match the column name `sizeChartId` (`rowIndex`, `sizeChartId`).
    * `UNKNOWN_SIZE_CHART` — dimensional grids or measurements from `sizeChartIds` not among the available ones
      for the dimensional characteristics of the table, and the names from `sizeChartNames` there was not exactly one such column.
    * `INVALID_SIZE_VALUE` — the value does not match the column (`rowIndex`, `sizeChartId`).
    * `EMPTY_TABLE` — there is not a single cell in the table. It is not returned for requests that match the schema.
      If there is only "no value" in the column, it returns `NONE_COLUMN`.
    * `EMPTY_CELL` — the required size grid cell is not filled (`rowIndex`, `sizeChartId`).
    * `NONE_COLUMN` — in columns from `sizeChartIds` there is no single value except "no value".
    * `DUPLICATE_ROWS` — lines from `rowIndices` they match.
    * `DUPLICATE_SIZES` — the values are repeated in dimensional grids from `sizeChartIds`. Depends on the size
      Characteristics: for some characteristics, the error returns when repeated in any grid, for others —
      only if there are repeats in all grids of the table.
    * `DUPLICATE_MEASURES` — the values are repeated in the measurements from `sizeChartIds`. Depends on the size
      Characteristics: For some characteristics, repetitions in measurements are allowed.
    * `ABSENT_MANDATORY_SIZE_CHART` — There is no mandatory size grid in the table.
    * `LIMIT_TABLES` — the business already has the maximum number of tables. Only during creation.
    * `NOT_FOUND` — there is no table. Only when updating.
    * `FORBIDDEN` — this is the Market table (`sizeTableType: STANDARD`), it cannot be changed. Only when updating.
    * `CONCURRENT_MODIFICATION` — the table was changed during the request processing. Repeat the request. Only when updating.
    * `INTERNAL_ERROR` — internal error, the table is not saved.
  
  
    _Enum:_{.json-schema-reset .json-schema-value} `INVALID_REQUEST`, `UNKNOWN_SIZE_CHART`, `INVALID_SIZE_VALUE`, `EMPTY_TABLE`, `EMPTY_CELL`, `NONE_COLUMN`, `DUPLICATE_ROWS`, `DUPLICATE_SIZES`, `DUPLICATE_MEASURES`, `ABSENT_MANDATORY_SIZE_CHART`, `LIMIT_TABLES`, `NOT_FOUND`, `FORBIDDEN`, `CONCURRENT_MODIFICATION`, `INTERNAL_ERROR`
    {.table-cell}
    ||
    ||
  
    _rowIndex_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer
  
    The number of the line with the error in `rows` the request, starting from 0. It may not match with `rowIndex` the saved table.
  
  
    _Min value:_{.json-schema-reset .json-schema-assertion} `0`
    {.table-cell}
    ||
    ||
  
    _rowIndices_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer[] &#124; null
  
    The numbers of matching rows in `rows` the request, starting from 0.
  
    _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
    _Unique items:_{.json-schema-reset .json-schema-assertion} `true`
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    [
      0
    ]
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    ||
  
    _sizeChartId_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer
  
    ID of the dimension grid or dimension that has an error in its column.
    {.table-cell}
    ||
    ||
  
    _sizeChartIds_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer[] &#124; null
  
    Identifiers of dimensional grids and measurements with an error in their columns.
  
    _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
    _Unique items:_{.json-schema-reset .json-schema-assertion} `true`
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    [
      0
    ]
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    ||
  
    _sizeChartNames_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: string[] &#124; null
  
    Column names from `sizeChartName` a query that does not have exactly one dimension grid or measurement.
  
  
    _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
    _Unique items:_{.json-schema-reset .json-schema-assertion} `true`
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    [
      "example"
    ]
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    Errors that caused the table to not be saved.
  
    First, the structure of the table, its columns, and cell values are checked. — mistakes `INVALID_REQUEST`,
    `UNKNOWN_SIZE_CHART` and `INVALID_SIZE_VALUE`. If there are any, other checks are not performed.,
    therefore, other errors may return after the correction.
  
  
    _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    [
      {
        "code": "INVALID_REQUEST",
        "rowIndex": 0,
        "sizeChartId": 0,
        "sizeChartIds": [
          0
        ],
        "sizeChartNames": [
          "example"
        ],
        "rowIndices": [
          0
        ]
      }
    ]
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    ||
  
    _sizeTableId_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer
  
    ID of the saved size table.
    {.table-cell}
    ||
    ||
  
    _sizeTableName_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: string
  
    The name of the saved size chart.
  
    _Example:_{.json-schema-reset .json-schema-example} `example`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    The results for the tables from the query are in the same order: `results[i]` refers to `sizeTables[i]`.
  
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    [
      {
        "sizeTableId": 0,
        "sizeTableName": "example",
        "errors": [
          {
            "code": "INVALID_REQUEST",
            "rowIndex": 0,
            "sizeChartId": 0,
            "sizeChartIds": [
              0
            ],
            "sizeChartNames": [
              "example"
            ],
            "rowIndices": [
              0
            ]
          }
        ]
      }
    ]
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    The results of saving the size tables.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "results": [
        {
          "sizeTableId": 0,
          "sizeTableName": "example",
          "errors": [
            {
              "code": "INVALID_REQUEST",
              "rowIndex": 0,
              "sizeChartId": 0,
              "sizeChartIds": [
                null
              ],
              "sizeChartNames": [
                null
              ],
              "rowIndices": [
                null
              ]
            }
          ]
        }
      ]
    }
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "result": {
        "results": [
          {
            "sizeTableId": 0,
            "sizeTableName": "example",
            "errors": [
              {}
            ]
          }
        ]
      }
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__400">
  
  ## 400 Bad Request
  
  The query contains incorrect data, and none of the tables are updated. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#400)
  
  Error code — `BAD_REQUEST`: the query does not match the method description or the table IDs are repeated.
  
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__401">
  
  ## 401 Unauthorized
  
  The authorization data is not specified in the request. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#401)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__403">
  
  ## 403 Forbidden
  
  The authorization data is incorrect or access to the resource is prohibited. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#403)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__404">
  
  ## 404 Not Found
  
  The requested resource was not found. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#404)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__420">
  
  ## 420 Method Failure
  
  The resource access limit has been exceeded. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#420)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__500">
  
  ## 500 Internal Server Error
  
  Internal error of the Market. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#500)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The type of response.
      Possible values:
      * `OK` — There are no errors.
      * `ERROR` — an error occurred while processing the request.
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      The standard wrapper for server responses.
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      The error code.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      Description of the error.
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      A list of errors.
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    A standard wrapper for server errors.
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
        

- Console

  ```openapi-sandbox translate=no
  pathParams:
    - description: "Cabinet ID.\n\n\n:::no-translate\n{% if audience == \"partner\" %}\n:::\n\n\nTo find out, use the request [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md).\n\nℹ️ [What is a cabinet and a store on the Market?](https://yandex.ru/support/marketplace/account/introduction.html)\n\n\n:::no-translate\n{% endif %}\n:::\n\n"
      name: businessId
      in: path
      required: true
      schema:
        type: integer
        format: int64
        minimum: 1
  searchParams: []
  headers: []
  body: |-
    {
      "sizeTables": [
        {
          "sizeTableId": 1,
          "sizeTableName": "example",
          "rows": [
            {
              "values": [
                null
              ]
            }
          ]
        }
      ]
    }
  schema:
    description: Size tables for a complete update.
    type: object
    required:
      - sizeTables
    properties:
      sizeTables:
        description: >
          Size tables with new content. They are processed in order, each
          independently of the others.
  
  
          Table IDs should not be repeated in a single query. If the IDs are
          repeated,
  
          the request is not being processed.
  
  
          In total, in all tables — no more than 5000 cells. If
          there are more cells, the request is not processed.
        type: array
        minItems: 1
        maxItems: 10
        items:
          description: New contents of the size chart. Replaces it entirely.
          type: object
          required:
            - sizeTableId
            - sizeTableName
            - rows
          properties:
            sizeTableId:
              description: ID of the size table created by the business.
              type: integer
              format: int64
              minimum: 1
            sizeTableName:
              description: >
                The new name of the size chart. The spaces at the beginning and at
                the end are deleted. The name consists of only spaces
                —
  
                mistake `INVALID_REQUEST`.
              type: string
              minLength: 1
              maxLength: 256
            rows:
              description: >
                All rows in the table: each row describes one size. Rows and
                columns that are not in the query are deleted.
  
                When saving, the row order may change.
              type: array
              minItems: 1
              maxItems: 200
              items:
                description: >-
                  Row of the size chart — one size in all size
                  grids and dimensions of the table.
                type: object
                required:
                  - values
                properties:
                  values:
                    description: >
                      The cells are rows in any order. Each dimension grid or
                      measurement — no more than once per line,
  
                      otherwise, the error will return
                      `INVALID_REQUEST`.
  
  
                      A cell without a value can be omitted or passed with an
                      empty one. `sizeValue`: it will be saved
  
                      like "no value". This is an error in the mandatory size
                      grid. `EMPTY_CELL`.
                    type: array
                    minItems: 1
                    maxItems: 50
                    items:
                      description: >+
                        Size table cell: the size value in the size grid or the
                        measurement value.
  
  
                        Specify the column in `sizeChartId`,
                        `sizeChartName` or in both fields, and the
                        value — in `sizeValueId`,
                        `sizeValue`
  
                        or in both fields. A cell that doesn't have any
                        `sizeChartId`, neither
                        `sizeChartName` or neither
                        `sizeValueId`,
  
                        neither `sizeValue`, —
                        mistake `INVALID_REQUEST`.
  
  
                        The software column `sizeChartName` it is
                        searched among the dimensional grids and measurements of
                        the dimensional characteristics of the table
  
                        from the method's response `POST
                        v2/businesses/{businessId}/size-tables/charts`: the name
                        is compared case-insensitively
  
                        and spaces at the beginning and at the end. If the name
                        matches several columns or none, it is returned
  
                        mistake `UNKNOWN_SIZE_CHART`. Transmitted
                        together with `sizeChartId` parameter
                        `sizeChartName` must match
  
                        with the name of this column, otherwise an error will be
                        returned `INVALID_REQUEST`.
  
  
                        How the value is processed:
  
  
                        * If passed `sizeValueId`, it should be
                        from the reference of this dimensional grid
                        (`sizeValues` in the method's response
                          `POST v2/businesses/{businessId}/size-tables/charts`). The text of the value from the reference is saved.
                          Transmitted together with `sizeValueId` parameter `sizeValue` must match this text case-insensitively.
                          and spaces at the beginning and at the end.
                        * If passed only `sizeValue`, the spaces at
                        the beginning and at the end are removed from it, and
                        then:
                          * an empty value is saved as "no value".
                          * "no value" is accepted in any column and stored as `—`;
                          * in the reference column, the value is compared with the case-insensitive reference — if it matches
                            exactly one value, it is saved with the text from the directory;
                          * in a column without a directory, the transmitted text is stored no longer than 20 characters, and commas are used in measurements.
                            replaced by dots: `42,5` → `42.5`.
  
                        If the value does not match the column, an error is
                        returned. `INVALID_SIZE_VALUE`.
  
  
  
  
                        {% cut "Какие значения считаются «нет значения»" %}
  
  
  
  
                        The entire value, case-insensitive: `No`, `Empty`, `There
                        is no value`, `Does not match`, `There is no suitable
                        one`,
  
                        `Absent`, `Not applicable`, `No value` or one or more
                        characters `-`, `‐`, `‑`, `‒`, `–`,
                        `—`, `―`.
  
                        The minus sign `−` it does not apply to them.
  
  
                        In the mandatory size grid, the value is the same as an
                        empty value or an untransmitted cell., —
                        mistake `EMPTY_CELL`.
  
  
  
  
                        {% endcut %}
  
  
                      type: object
                      properties:
                        sizeChartId:
                          description: >
                            ID of the dimension grid or measurement from the
                            method response `POST
                            v2/businesses/{businessId}/size-tables/charts`.
  
                            Grids and measurements have a common identifier space.
                            Required if not transmitted
                            `sizeChartName`.
                          type: integer
                          format: int64
                          minimum: 1
                        sizeChartName:
                          description: >
                            The name of the dimensional grid or measurement from
                            the method's response `POST
                            v2/businesses/{businessId}/size-tables/charts`.
  
                            It is compared case-insensitively and with spaces at
                            the beginning and at the end. Required if not
                            transmitted `sizeChartId`.
                          type: string
                          minLength: 1
                          maxLength: 255
                        sizeValueId:
                          description: >
                            ID of the value from the dimensional grid reference.
                            Only the standard size grids of the Market have a
                            reference book.
                          type: integer
                          format: int64
                          minimum: 1
                        sizeValue:
                          description: >
                            The value of the size or measurement. In columns
                            without a directory — no longer than 20
                            characters.
                          type: string
                          maxLength: 255
  bodyType: application/json
  method: post
  security:
    - type: apiKey
      name: 'Api-Key'
      in: header
    - type: oauth2
      x-inline: true
      flows:
        implicit:
          authorizationUrl: https://oauth.yandex.ru/authorize
          scopes:
            market:partner-api: API Яндекс.Маркета / Поиска по товарам для партнеров
  path: v2/businesses/{businessId}/size-tables/update
  host: https://api.partner.market.yandex.ru
  
  ```
        

{% endlist %}


</div>
<!-- endsource: en/api/content/updateContentSizeTables.md -->



[*Deprecated]: No longer supported, please use an alternative and newer version.