按类别列出的产品特性
方法适用于模式:FBY, FBS, Express 和 DBS.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回指定[叶类别]的具有可接受值的特征列表(*list-category).
| ⚙️ 限制: 每分钟100个类别 |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/category/{categoryId}/parameters
Path parameters
|
Name |
Description |
|
categoryId* |
Type: integer<int64> 市场上的类别的ID。 要找出您感兴趣的产品所属类别的ID,请使用请求 POST v2/categories/tree.
Min value (exclusive): |
Query parameters
|
Name |
Description |
|
businessId |
Type: integer<int64> 内阁ID。 要找到答案,请使用请求 GET v2/campaigns. 传递参数以获取作为此机柜中产品变型的特征的特征。
Min value: |
Responses
200 OK
指定类别的产品特性列表。
Body
application/json
{
"status": "OK",
"result": {
"categoryId": 0,
"parameters": [
{
"id": 0,
"name": "string",
"type": "TEXT",
"unit": {
"defaultUnitId": 0,
"units": [
{
"id": 0,
"name": "кг",
"fullName": "килограмм"
}
]
},
"description": "string",
"recommendationTypes": [
"HAS_VIDEO"
],
"required": false,
"filtering": false,
"distinctive": false,
"multivalue": false,
"allowCustomValues": false,
"values": [
{
"id": 0,
"value": "string",
"description": "string"
}
],
"constraints": {
"minValue": 0,
"maxValue": 0,
"maxLength": 0
},
"valueRestrictions": [
{
"limitingParameterId": 0,
"limitedValues": [
{
"limitingOptionValueId": 0,
"optionValueIds": [
0
]
}
]
}
]
}
]
}
}
|
Name |
Description |
||||
|
status* |
Type: string 响应的类型。 可能的值:
Enum: |
||||
|
result |
Type: object
类别参数的信息。 |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
市场的内部错误。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.
没有子项的类别。