添加新的或更改创建的注释
方法适用于所有模式.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
- communication — 与买家沟通
- all-methods — 全面管理账户
添加新的商店注释或修改商店之前留下的注释。
要创建评论,请仅发送评论ID。 feedbackId
.
要将注释添加到另一个注释,请发送:
feedbackId
-审查ID。评论。父母
-父注释的ID。
要编辑评论,请发送:
feedbackId
-审查ID。comment.id
-需要更改的注释的ID。
如果你在同一时间传送 评论。父母
和 comment.id
,现有的注释将被更改。
**⚙️ 限制:**每小时1,000个请求 |
---|
Request
POST
https://api.partner.market.yandex.ru/v2/businesses/{businessId}/goods-feedback/comments/update
Path parameters
Name |
Description |
businessId* |
Type: integer<int64> 内阁ID。 要找到答案,请使用请求 :no-translate[GET v2/campaigns]. Min value: |
Body
application/json
{
"feedbackId": 0,
"comment": {
"id": 0,
"parentId": 0,
"text": "string"
}
}
Name |
Description |
comment* |
Type: UpdateGoodsFeedbackCommentDTO Параметры комментария. |
feedbackId* |
Type: integer<int64> 的审查ID。 |
UpdateGoodsFeedbackCommentDTO
评论或其他评论的评论。
Name |
Description |
text* |
Type: string 注释的文本。 它不得包含商店的联系人或指向Yandex以外的网站的链接。市场。 Min length: Max length: |
id |
Type: integer<int64> Идентификатор комментария, который нужно изменить. Оставьте поле пустым, если хотите добавить новый комментарий. |
parentId |
Type: integer<int64> Идентификатор родительского комментария, на который нужно ответить. |
Responses
200 OK
有关添加或更改的注释的信息。
Body
application/json
{
"status": "OK",
"result": {
"id": 0,
"text": "string",
"canModify": false,
"parentId": 0,
"author": {
"type": "USER",
"name": "string"
},
"status": "PUBLISHED",
"feedbackId": 0
}
}
Name |
Description |
status* |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
result |
Type: GoodsFeedbackCommentDTO 评论评论. |
ApiResponseStatusType
响应的类型。 可能的值:
OK
-没有错误。ERROR
-处理请求时发生错误。
Type |
Description |
Enum: |
GoodsFeedbackCommentDTO
评论评论.
Name |
Description |
feedbackId* |
Type: integer<int64> 的审查ID。 |
id* |
Type: integer<int64> 评论评论的ID。 |
status* |
Type: GoodsFeedbackCommentStatusType 评论状态:
Enum: |
text* |
Type: string 注释的文本。 它不得包含商店的联系人或指向Yandex以外的网站的链接。市场。 Min length: Max length: |
author |
Type: GoodsFeedbackCommentAuthorDTO 关于评论作者的信息。 |
canModify |
Type: boolean 卖家是否可以更改评论或删除评论。 |
parentId |
Type: integer<int64> 评论评论的ID。 |
GoodsFeedbackCommentStatusType
评论状态:
PUBLISHED
-出版。UNMODERATED
-未核实。BANNED
-封锁。DELETED
-删除。
Type |
Description |
Enum: |
GoodsFeedbackCommentAuthorDTO
关于评论作者的信息。
Name |
Description |
name |
Type: string 作者的名字或内阁的名字。 |
type |
Type: GoodsFeedbackCommentAuthorType 作者类型:
Enum: |
GoodsFeedbackCommentAuthorType
作者类型:
USER
-用户。BUSINESS
-办公室。
Type |
Description |
Enum: |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
注释更新方法的特定错误:
资料描述 | 解释说明 | 解决方法 |
---|---|---|
重复评论 | 已经有这个文本的评论。 | — |
评论文本中的非法url | 评论文本中找到了指向第三方资源的链接。 | 删除链接,如有必要,添加那些通向市场的链接。 |
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
ApiErrorDTO
一般错误格式。
Name |
Description |
code* |
Type: string 的错误代码。 |
message |
Type: string 错误的描述。 |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
Yandex中的内部错误。 市场。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] 错误列表。 Min items: |
status |
Type: ApiResponseStatusType 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.