---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/reference/content/createContentSizeTables.md
  - https://yandex.com/dev/market/partner-api/doc/ru/reference/content/createContentSizeTables.md
  - https://yandex.com/dev/market/partner-api/doc/zh/reference/content/createContentSizeTables.md
  - href: https://yandex.com/dev/market/partner-api/doc/en/reference/content/createContentSizeTables.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/createContentSizeTables.md -->
<div class="openapi">

# Creating size tables

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

{% list tabs %}

- Info

  
  <!-- source: en/_auto/method_scopes/createContentSizeTables.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/createContentSizeTables.md -->
  
  
  Creates business size tables. You can create up to 10 tables in one query, with a total of no more than
  5000 cells. If there are more tables or cells, the request is rejected with an error. `BAD_REQUEST` and not a single table
  it is not being created.
  
  The table refers to a dimensional characteristic, not a category.: it is selected for all categories
  with the same dimensional characteristic.
  
  The size characteristic of the category is returned by the size table selection method
  `POST v2/businesses/{businessId}/size-tables/suggest` in the field `result.sizeParameterId`, a characteristic
  an existing table — method `POST v2/businesses/{businessId}/size-tables` in the field `sizeParameterId`.
  If the request contains an unknown identifier of the dimensional characteristic, the request is rejected with an error.
  `UNKNOWN_SIZE_PARAMETER` and no table is being created.
  
  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`.
  
  
  {% 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 unchanged to the size tables update method.
  `POST v2/businesses/{businessId}/size-tables/update`: fields `columnType` and `rowIndex` it does not take into account.
  
  
  {% endcut %}
  
  
  To link a table to a product, pass its ID to `value` characteristics with `parameterId: 73979829`
  in the request [POST v2/businesses/{businessId}/offer-cards/update](https://yandex.com/dev/market/partner-api/doc/en/reference/content/updateOfferContent.md).
  When the table is changed, the new content is applied to the linked items automatically.
  
  
  {% note warning "Повторный запрос создает таблицы еще раз" %}
  
  
  The method is not idempotent: each query creates new tables, even if the same ones already exist.
  
  If the query failed with a 5xx error, some of the tables may have been saved. Get the business tables using the method
  `POST v2/businesses/{businessId}/size-tables` and only then repeat the query for tables that are not there.
  
  
  {% endnote %}
  
  
  The number of tables a business has is limited — in total, according to all dimensional characteristics. The table cannot be deleted.
  If the limit is reached, the table is not created and an error is returned for it. `LIMIT_TABLES`. With simultaneous
  The limit is not strictly checked in queries, and more tables may be created.
  
  
  <!-- source: en/_auto/method_limits/createContentSizeTables.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/createContentSizeTables.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/create
  ```
  
  </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": [
      {
        "sizeParameterId": 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 %}
  
  Rows of the table: each describes one size. 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}
  ||
  ||
  
  _sizeParameterId_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: integer
  
  ID of the dimension characteristic that the dimensions from the table relate to.
  
  
  _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 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. They are processed in order, each independently of the others.
  
  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
  [
    {
      "sizeParameterId": 1,
      "sizeTableName": "example",
      "rows": [
        {
          "values": [
            {}
          ]
        }
      ]
    }
  ]
  ```
  
  {% endcut %}
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  </div>
  
  ## Responses
  
  <div class="openapi__response__code__200">
  
  ## 200 OK
  
  The results of creating tables in the query order.
  
  If at least one table could not be created, the field `status` takes the value `ERROR`.
  The rest of the 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 no tables are being created. [More information about the error](https://yandex.com/dev/market/partner-api/doc/en/concepts/error-codes.md#400)
  
  Error codes:
  
  * `BAD_REQUEST` — the request does not match the description of the method: for example, the number of tables, rows, or cells is exceeded.
  * `UNKNOWN_SIZE_PARAMETER` — one of the tables has `sizeParameterId` not from the list of acceptable values.
  
  
  <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": [
        {
          "sizeParameterId": 1,
          "sizeTableName": "example",
          "rows": [
            {
              "values": [
                null
              ]
            }
          ]
        }
      ]
    }
  schema:
    description: Size tables to create.
    type: object
    required:
      - sizeTables
    properties:
      sizeTables:
        description: >
          Size tables. They are processed in order, each independently of the
          others.
  
  
          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 size chart.
          type: object
          required:
            - sizeParameterId
            - sizeTableName
            - rows
          properties:
            sizeParameterId:
              description: >
                ID of the dimension characteristic that the dimensions from the
                table relate to.
              type: integer
              format: int64
              minimum: 1
            sizeTableName:
              description: >
                The 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: >
                Rows of the table: each describes one size. 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/create
  host: https://api.partner.market.yandex.ru
  
  ```
        

{% endlist %}


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



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