---
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/zh/reference/content/createContentSizeTables.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/market/partner-api/doc/zh/llms.txt?revision=r22228850
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/market/partner-api/doc/zh/llms.txt?revision=r22228850


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

# 创建大小表

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

{% list tabs %}

- Info

  
  <!-- source: zh/_auto/method_scopes/createContentSizeTables.md -->
  **方法适用于[所有模式](https://yandex.com/dev/market/partner-api/doc/zh/overview/business.md).**

  {% cut "**如果您使用API-Key令牌，调用该方法时需要具备列表中可用权限之一**" %}

  * offers-and-cards-management — [商品和卡片管理](https://yandex.com/dev/market/partner-api/doc/zh/_auto/scopes_summary/pages/offers-and-cards-management.md)
  * all-methods — 全面管理商家

  {% endcut %}
  <!-- endsource: zh/_auto/method_scopes/createContentSizeTables.md -->
  
  
  创建业务规模表。 您可以在一个查询中创建最多10个表，总共不超过
  5000个细胞。 如果有更多的表或单元格，则会拒绝请求并显示错误。 `BAD_REQUEST` 而不是一个单一的表
  它没有被创造。
  
  该表指的是一个尺寸特征，而不是一个类别。：它被选择为所有类别
  具有相同的尺寸特性。
  
  通过尺寸表选择方法返回类别的尺寸特征
  `POST v2/businesses/{businessId}/size-tables/suggest` 在战场上 `result.sizeParameterId`，一个特征
  现有表格 — 方法 `POST v2/businesses/{businessId}/size-tables` 在战场上 `sizeParameterId`.
  如果请求包含维度特征的未知标识符，则拒绝该请求并出错。
  `UNKNOWN_SIZE_PARAMETER` 并且没有创建表。
  
  可在表格中使用的尺寸网格和测量值，它们的值和强制性网格
  返回方法 `POST v2/businesses/{businessId}/size-tables/charts`.
  
  
  {% cut "Как заполнить таблицу" %}
  
  
  
  <!-- source: zh/_includes/common/size-tables-filling.md -->
  每个元素 `rows` — 表格行：所有尺寸网格和尺寸中的一个尺寸。 在 `values`
  每列传递一个单元格：网格或测量ID `sizeChartId` 或名称
  在 `sizeChartName` 和价值在 `sizeValueId`, `sizeValue` 或者在两个领域。 您可以跳过或传输没有值的单元格。
  与一个空 `sizeValue` — 它将被保存为"无值"。

  表的要求:

  * 表必须至少有一个强制大小网格（`required: true`），否则将返回错误
    `ABSENT_MANDATORY_SIZE_CHART`. 测量和网格与 `required: false` 这一要求没有得到满足。
  * 在所有行中填写表中的每个所需网格，否则将返回错误。 `EMPTY_CELL`.
  * 每列必须至少有一个值，除了空值和"无值"，否则将返回错误。
    `NONE_COLUMN`. 如果没有任何东西可以填充列，请不要转移其单元格。
  * 字符串必须不匹配，否则将返回错误。 `DUPLICATE_ROWS`. 列中的值是否允许重复？
    (`DUPLICATE_SIZES`, `DUPLICATE_MEASURES`），取决于尺寸特性。
  <!-- endsource: zh/_includes/common/size-tables-filling.md -->
  
  
  
  {% endcut %}
  
  
  
  {% cut "Чем сохраненная таблица отличается от переданной" %}
  
  
  
  <!-- source: zh/_includes/common/size-tables-saved-differences.md -->
  方法 `POST v2/businesses/{businessId}/size-tables` 按列返回一个表：对于每个值
  有行号 `rowIndex`. 若要获取行，请按以下方式对值进行分组 `rowIndex`.

  保存的表可能与传输的表不同:

  * 行和列按照市场设置的顺序进行，并且 `rowIndex` 与请求中的行号不匹配。
  * 标准尺寸网格返回参考书和参考书的文本值。 `sizeValueId`;
  * 逗号替换为测量中的点。: `42,5` → `42.5`;
  * 不返回具有"无值"的信元和非传输信元;
  * 名称和值开头和结尾的空格已被删除。
  <!-- endsource: zh/_includes/common/size-tables-saved-differences.md -->
  
  
  响应中的值可以不变地传递给size tables update方法。
  `POST v2/businesses/{businessId}/size-tables/update`:字段 `columnType` 和 `rowIndex` 它没有考虑到。
  
  
  {% endcut %}
  
  
  要将表链接到产品，请将其ID传递给 `value` 特征与 `parameterId: 73979829`
  在请求 [POST v2/businesses/{businessId}/offer-cards/update](https://yandex.com/dev/market/partner-api/doc/zh/reference/content/updateOfferContent.md).
  更改表时，新内容将自动应用于链接的项。
  
  
  {% note warning "Повторный запрос создает таблицы еще раз" %}
  
  
  该方法不是幂等的：每个查询都会创建新表，即使已经存在相同的表。
  
  如果查询失败并出现5xx错误，则某些表可能已保存。 使用该方法获取业务表
  `POST v2/businesses/{businessId}/size-tables` 然后才对不存在的表重复查询。
  
  
  {% endnote %}
  
  
  企业拥有的表的数量是有限的 — 总的来说，根据所有尺寸特性。 无法删除该表。
  如果达到该限制，则不会创建表，并为其返回错误。 `LIMIT_TABLES`. 同时进行
  在查询中没有严格检查该限制，并且可能会创建更多表。
  
  
  <!-- source: zh/_auto/method_limits/createContentSizeTables.md -->
  |<div style="text-align: left;">**⚙️ 没有订阅的限制:** 5 请求 每分钟<br>**⭐️ [使用中等订阅限制](https://yandex.ru/support/marketplace/ru/marketing/subscription):** 10 请求 每分钟</div>|
  |-|
  <!-- endsource: zh/_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
  
  内阁ID。
  
  
  
  
  
  _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或来自方法响应的测量 `POST v2/businesses/{businessId}/size-tables/charts`.
  网格和测量具有共同的标识符空间。 如未传送，则需要 `sizeChartName`.
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  ||
  
  _sizeChartName_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: string
  
  维度网格的名称或来自方法响应的测量 `POST v2/businesses/{businessId}/size-tables/charts`.
  它不区分大小写，并在开始和结束时与空格进行比较。 如未传送，则需要 `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
  
  尺寸或测量的值。 在没有目录的列中 — 不超过20个字符。
  
  
  _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。 只有市场的标准尺寸网格才有参考书。
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  {% endcut %}
  
  单元格是按任意顺序排列的行。 每个维度网格或测量 — 每行不超过一次,
  否则，错误将返回 `INVALID_REQUEST`.
  
  没有值的单元格可以省略或用空单元格传递。 `sizeValue`：它将被保存
  就像"没有价值"。 这是强制尺寸网格中的错误。 `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 %}
  
  表的行：每个描述一个大小。 保存时，行顺序可能会更改。
  
  
  _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。
  
  
  _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
  
  尺寸图表的名称。 开头和结尾的空格将被删除。 名称仅由空格组成 —
  错误 `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 %}
  
  尺寸表。 它们按顺序处理，每个都独立于其他。
  
  在所有表中总计 — 不超过5000个细胞。 如果有更多的单元格，则不处理请求。
  
  
  _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
  
  查询顺序创建表的结果。
  
  如果无法创建至少一个表，则该字段 `status` 取值 `ERROR`.
  其余的表被处理和保存。
  
  
  <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
  
    响应的类型。
    可能的值:
    * `OK` — 没有错误。
    * `ERROR` — 处理请求时出错。
  
  
    _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    服务器响应的标准包装器。
  
    {% 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
  
    保存尺寸图的错误代码:
  
    * `INVALID_REQUEST` — 表结构被破坏：名称仅由空格组成，单元格没有 `sizeChartId`
      和 `sizeChartName` (`rowIndex`），重复列行，单元格没有 `sizeValueId` 和 `sizeValue` 或细胞,
      其中 `sizeChartName` 与列名不匹配 `sizeChartId` (`rowIndex`, `sizeChartId`).
    * `UNKNOWN_SIZE_CHART` — 尺寸网格或测量 `sizeChartIds` 不在可用的
      对于表的大小特征，以及从 `sizeChartNames` 没有一个这样的专栏。
    * `INVALID_SIZE_VALUE` — 值与列不匹配（`rowIndex`, `sizeChartId`).
    * `EMPTY_TABLE` — 表中没有单个单元格。 它不会为与方案匹配的请求返回。
      如果列中只有"无值"，则返回 `NONE_COLUMN`.
    * `EMPTY_CELL` — 所需大小的网格单元未填充（`rowIndex`, `sizeChartId`).
    * `NONE_COLUMN` — 在列从 `sizeChartIds` 除了"没有价值"之外没有单一的价值。
    * `DUPLICATE_ROWS` — 来自 `rowIndices` 他们匹配。
    * `DUPLICATE_SIZES` — 这些值在尺寸网格中重复， `sizeChartIds`. 取决于尺寸
      特征：对于某些特征，错误在任何网格中重复时返回，对于其他特征 —
      只有在表格的所有网格中都有重复的情况下。
    * `DUPLICATE_MEASURES` — 这些值在测量中重复 `sizeChartIds`. 取决于尺寸
      特性：对于某些特性，允许重复测量。
    * `ABSENT_MANDATORY_SIZE_CHART` — 表中没有强制尺寸网格。
    * `LIMIT_TABLES` — 该业务已经具有最大表数。 只有在创作过程中。
    * `NOT_FOUND` — 没有桌子。 只有在更新时。
    * `FORBIDDEN` — 这是市场表（`sizeTableType: STANDARD`），它不能改变。 只有在更新时。
    * `CONCURRENT_MODIFICATION` — 请求处理过程中更改了该表。 重复请求。 只有在更新时。
    * `INTERNAL_ERROR` — 内部错误，表不保存。
  
  
    _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
  
    错误的行的编号 `rows` 的请求，从0开始。 它可能与 `rowIndex` 保存的表。
  
  
    _Min value:_{.json-schema-reset .json-schema-assertion} `0`
    {.table-cell}
    ||
    ||
  
    _rowIndices_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer[] &#124; null
  
    匹配行的数量 `rows` 的请求，从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。
    {.table-cell}
    ||
    ||
  
    _sizeChartIds_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: integer[] &#124; null
  
    维网格的标识符和列中有错误的测量值.
  
    _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
  
    列名来自 `sizeChartName` 不具有恰好一个维度网格或度量的查询。
  
  
    _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 %}
  
    导致表无法保存的错误。
  
    首先，检查表的结构、列和单元格值。 — 错误 `INVALID_REQUEST`,
    `UNKNOWN_SIZE_CHART` 和 `INVALID_SIZE_VALUE`. 如果有，则不执行其他检查。,
    因此，校正后可能返回其他错误。
  
  
    _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。
    {.table-cell}
    ||
    ||
  
    _sizeTableName_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    **Type**: string
  
    保存的大小图表的名称。
  
    _Example:_{.json-schema-reset .json-schema-example} `example`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    查询表的结果顺序相同: `结果[i]` 指 `尺寸表[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 %}
  
    保存大小表的结果。
  
    {% 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
  
  查询包含不正确的数据，并且没有创建表。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/concepts/error-codes.md#400)
  
  错误代码:
  
  * `BAD_REQUEST` — 请求与方法的描述不匹配：例如，超过了表、行或单元格的数量。
  * `UNKNOWN_SIZE_PARAMETER` — 其中一张桌子有 `sizeParameterId` 不是从可接受的值列表中。
  
  
  <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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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
  
  请求中未指定授权数据。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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
  
  授权数据不正确或禁止访问资源。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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
  
  找不到请求的资源。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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
  
  已超出资源访问限制。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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
  
  市场的内部错误。 [有关错误的更多信息](https://yandex.com/dev/market/partner-api/doc/zh/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
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% 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
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _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 %}
  
    服务器错误的标准包装器。
  
    {% 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: "内阁ID。\n\n\n:::no-translate\n{% if audience == \"partner\" %}\n:::\n\n\n要找到答案，请使用请求 [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md).\n\nℹ️ [什么是市场上的橱柜和商店？](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: 要创建的大小表。
    type: object
    required:
      - sizeTables
    properties:
      sizeTables:
        description: |
          尺寸表。 它们按顺序处理，每个都独立于其他。
  
          在所有表中总计 — 不超过5000个细胞。 如果有更多的单元格，则不处理请求。
        type: array
        minItems: 1
        maxItems: 10
        items:
          description: 新尺寸图表。
          type: object
          required:
            - sizeParameterId
            - sizeTableName
            - rows
          properties:
            sizeParameterId:
              description: |
                表中的维度与之相关的维度特征的ID。
              type: integer
              format: int64
              minimum: 1
            sizeTableName:
              description: |
                尺寸图表的名称。 开头和结尾的空格将被删除。 名称仅由空格组成 —
                错误 `INVALID_REQUEST`.
              type: string
              minLength: 1
              maxLength: 256
            rows:
              description: |
                表的行：每个描述一个大小。 保存时，行顺序可能会更改。
              type: array
              minItems: 1
              maxItems: 200
              items:
                description: 尺寸图的行 — 表的所有尺寸网格和尺寸中的一个尺寸。
                type: object
                required:
                  - values
                properties:
                  values:
                    description: |
                      单元格是按任意顺序排列的行。 每个维度网格或测量 — 每行不超过一次,
                      否则，错误将返回 `INVALID_REQUEST`.
  
                      没有值的单元格可以省略或用空单元格传递。 `sizeValue`：它将被保存
                      就像"没有价值"。 这是强制尺寸网格中的错误。 `EMPTY_CELL`.
                    type: array
                    minItems: 1
                    maxItems: 50
                    items:
                      description: >+
                        尺寸表单元格：尺寸网格中的尺寸值或测量值。
  
  
                        指定列 `sizeChartId`,
                        `sizeChartName` 或者在两个字段中，以及值
                        — 在 `sizeValueId`,
                        `sizeValue`
  
                        或者在两个领域。 一个没有任何细胞的细胞 `sizeChartId`，既不
                        `sizeChartName` 或者两者都不是
                        `sizeValueId`,
  
                        都不是 `sizeValue`, — 错误
                        `INVALID_REQUEST`.
  
  
                        软件专栏 `sizeChartName` 它是在尺寸网格和测量表的尺寸特性中搜索的
  
                        从方法的响应 `POST
                        v2/businesses/{businessId}/size-tables/charts`：名称大小写比较不敏感
  
                        以及开头和结尾的空格。 如果名称匹配多个列或无，则返回
  
                        错误 `UNKNOWN_SIZE_CHART`. 与
                        `sizeChartId` 参数
                        `sizeChartName` 必须匹配
  
                        使用此列的名称，否则将返回错误 `INVALID_REQUEST`.
  
  
                        值的处理方式:
  
  
                        * 如果通过
                        `sizeValueId`，它应该是从这个维度网格的参考（`sizeValues`
                        在方法的响应
                          `POST v2/businesses/{businessId}/size-tables/charts`). 将保存来自引用的值的文本。
                          与 `sizeValueId` 参数 `sizeValue` 必须不区分大小写地匹配此文本。
                          以及开头和结尾的空格。
                        * 如果只通过 `sizeValue`，开头和结尾的空格从中删除，然后:
                          * 空值保存为"无值"。
                          * 任何列都接受"无值"并存储为 `：不-翻译[-]`;
                          * 在"引用"列中，将该值与不区分大小写的引用进行比较 — 如果匹配
                            只有一个值，它与目录中的文本一起保存;
                          * 在没有目录的列中，传输的文本存储不超过20个字符，并且在测量中使用逗号。
                            用点代替: `42,5` → `42.5`.
  
                        如果值与列不匹配，则返回错误。 `INVALID_SIZE_VALUE`.
  
  
  
  
                        {% cut "Какие значения считаются «нет значения»" %}
  
  
  
  
                        整个值，不区分大小写: `非也。`, `空的`, `没有价值`, `不匹配`, `没有合适的`,
  
                        `缺席`, `不适用`, `没有价值` 或一个或多个字符 `-`, `‐`, `‑`,
                        `‒`, `–`, `：不-翻译[-]`, `―`.
  
                        减号 `−` 它不适用于他们。
  
  
                        在强制大小网格中，该值与空值或未传输的单元格相同。, — 错误
                        `EMPTY_CELL`.
  
  
  
  
                        {% endcut %}
  
  
                      type: object
                      properties:
                        sizeChartId:
                          description: >
                            维度网格的ID或来自方法响应的测量 `POST
                            v2/businesses/{businessId}/size-tables/charts`.
  
                            网格和测量具有共同的标识符空间。 如未传送，则需要
                            `sizeChartName`.
                          type: integer
                          format: int64
                          minimum: 1
                        sizeChartName:
                          description: >
                            维度网格的名称或来自方法响应的测量 `POST
                            v2/businesses/{businessId}/size-tables/charts`.
  
                            它不区分大小写，并在开始和结束时与空格进行比较。 如未传送，则需要
                            `sizeChartId`.
                          type: string
                          minLength: 1
                          maxLength: 255
                        sizeValueId:
                          description: |
                            维网格参考值的ID。 只有市场的标准尺寸网格才有参考书。
                          type: integer
                          format: int64
                          minimum: 1
                        sizeValue:
                          description: |
                            尺寸或测量的值。 在没有目录的列中 — 不超过20个字符。
                          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: zh/api/content/createContentSizeTables.md -->



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