---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/step-by-step/content-change.md
  - https://yandex.com/dev/market/partner-api/doc/ru/step-by-step/content-change.md
  - https://yandex.com/dev/market/partner-api/doc/zh/step-by-step/content-change.md
  - href: zh/step-by-step/content-change.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/market/partner-api/doc/zh/llms.txt

# 更改类别特征

您可以使用API来管理产品卡上的内容。 — 这包括传输特定于特定产品类别的特性。

## 这些产品属于商店的新类别 {#edit-card}

<!-- source: zh/_includes/mermaid/content-new-category.md -->
```mermaid
%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#FDF3E8',
      'primaryTextColor': '#000000',
      'primaryBorderColor': '#BA9C80',
      'lineColor': '#BA9C80',
      'secondaryColor': '#94E1C4',
      'tertiaryColor': '#F84E57',
      'noteBkgColor': '#FED58D'
    }
  }
}%%

sequenceDiagram
    participant Merchant as 您的店铺
    participant Market as Yandex Market

    rect rgb(251, 243, 232)
        note right of Merchant: 获取卡片状态及先前提交的商品信息
        Merchant ->>+ Market: POST v2/businesses/{businessId}/offer-cards
        Market ->> Market: 生成<br>商品列表。
        Market -->>- Merchant: OK: 包含卡片状态和填写建议的商品列表。

    end

    rect rgb(251, 243, 232)
        note right of Merchant: 获取商品所属分类所需的属性
        Merchant ->> Market: 商品在Market上的分类ID<br>POST v2/category/{categoryId}/parameters
        Market -->>+ Merchant: OK: 该分类商品的属性列表。

        Merchant ->>- Merchant: 将商品属性与Market上的属性进行匹配。
    end

    rect rgb(251, 243, 232)
        note right of Merchant: 填写卡片
        Merchant ->>+ Market: 每个商品的属性值<br>POST v2/businesses/{businessId}/offer-cards/update
        Market ->> Market: 分析提交内容<br>若内容无误，<br>将其添加到卡片。
        Market -->>- Merchant: OK
    end

    rect rgb(251, 243, 232)
        note right of Merchant: 检查结果
        Merchant ->>+ Market: POST v2/businesses/{businessId}/offer-cards
        Market ->> Market: 检查商品列表。
        Market -->>- Merchant: OK: 包含状态和填写建议的商品列表。

    end
```
<!-- endsource: zh/_includes/mermaid/content-new-category.md -->

1. 获取您以前为产品卡提供的信息，以及卡状态和使用产品卡填写的建议 [POST v2/businesses/{businessId}/offer-cards](https://yandex.com/dev/market/partner-api/doc/zh/reference/content/getOfferCardsContentStatus.md).

      作为回应，您将收到以下内容:
      * 产品属于市场上的哪些类别。 市场根据您提供的数据自动确定产品类别。
      * 产品卡的状态是什么?
      * 传输的产品特性。
      * 填写卡片的建议。 [如何使用建议](#recommendations)

2. 对于每个[叶子类别](*list-category) 请求使用所需特性的列表 [POST v2/category/{categoryId}/parameters](https://yandex.com/dev/market/partner-api/doc/zh/reference/content/getCategoryContentParameters.md).

      对于具有测量单位的特征，在参数 `unit` 他们会回来的:

      * 可接受的值（`units`);
      * 默认值(`defaultUnitId`).

3. 比较Yandex期望的特征。店的数据库中可用的特征的市场。

      **例子。** 对于汤盘，市场预计，除其他外，"滤色"的特点。 在商店的数据库中，相同的特征被称为"颜色"。 您需要设置集成，以便:

      * "颜色"特性的值作为"滤色器的颜色"特性传递给市场;
      * "颜色"特性的每个值被分配了"用于滤光器的颜色"特性的可接受值。

4. 使用以下方法传输产品特性 [POST v2/businesses/{businessId}/offer-cards/update](https://yandex.com/dev/market/partner-api/doc/zh/reference/content/updateOfferContent.md).

      {% note warning "始终传达全套特性。" %}

      传递空值将擦除先前在卡上输入的内容。

      {% endnote %}

      如果需要，改变特性的测量单位的标识符。 — 参数 `unitId` 在 `parameterValues`. 如果不通过，将使用默认的计量单位（`defaultUnitId`).

      成型前 `parameterValues`，查看 ["特性值的传递"](https://yandex.com/dev/market/partner-api/doc/zh/step-by-step/parameter-values.md) — 它描述了典型案例、限制和示例。

## 产品属于知名定制类 {#known-category}

按照新类别的说明操作，但跳过配置市场和商店特征比较的步骤。

## 如何检查和更新市场上和商店中特征的比较 {#check-and-update-comparison}

各类产品所需的特性清单不会保持不变。 小工具有额外的功能，新材料正在成为时尚。 有时市场只是在产品卡上列出更详细的特性列表。 — 使客户更容易比较和选择。

对于每个配置的类别，定期检查映射是否需要更新。

<!-- source: zh/_includes/mermaid/content-parameters.md -->
```mermaid
%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#FDF3E8',
      'primaryTextColor': '#000000',
      'primaryBorderColor': '#BA9C80',
      'lineColor': '#BA9C80',
      'secondaryColor': '#94E1C4',
      'tertiaryColor': '#F84E57',
      'noteBkgColor': '#FED58D'
    }
  }
}%%

sequenceDiagram
    participant Merchant as 您的店铺
    participant Market as Yandex Market

    rect rgb(251, 243, 232)
        note right of Merchant: 检查类别设置
        Merchant ->> Market: 之前配置的Market类别ID<br>POST v2/category/{categoryId}/parameters
        Market -->>+ Merchant: OK: 该类别商品的特性列表。

        Merchant ->>- Merchant: 检查商品特性<br>与Market特性的匹配情况。
    end
```
<!-- endsource: zh/_includes/mermaid/content-parameters.md -->

{% note tip "另请阅读说明" %}

* [添加和编辑产品](https://yandex.com/dev/market/partner-api/doc/zh/step-by-step/assortment-add-goods.md)
* [燕基科斯.卡的市场建议](https://yandex.com/dev/market/partner-api/doc/zh/step-by-step/recommendations.md)
* [管理档案中的货物](https://yandex.com/dev/market/partner-api/doc/zh/step-by-step/assortment-archive.md)

{% endnote %}

[*list-category]:
没有子项的类别。