Adding a new or changing a created comment
The method is available for all models.
If you are using an API Key token, one of the accesses in the list is required to call the method
- communication — Customer communication
- all-methods — Full account management
Adds a new store comment or modifies a comment that the store left earlier.
To create a comment on a review, send only the review ID. feedbackId.
To add a comment to another comment, send:
feedbackId— The review ID.comment.parentId— ID of the parent comment.
To edit a comment, send:
feedbackId— The review ID.comment.id— id of the comment to edit.
If you transmit at the same time comment.parentId and comment.id, an existing comment will be changed.
| ⚙️ Limit: 1,000 requests per hour |
|---|
Request
POST
https://api.partner.market.yandex.ru/v2/businesses/{businessId}/goods-feedback/comments/update
Path parameters
|
Name |
Description |
|
businessId* |
Type: integer<int64> Cabinet ID. To find out, use the request GET v2/campaigns. ℹ️ What is a cabinet and a store on the Market?
Min value: |
Body
application/json
{
"feedbackId": 0,
"comment": {
"id": 0,
"parentId": 0,
"text": "string"
}
}
|
Name |
Description |
||||||
|
comment* |
Type: object
A comment on a review or other comment. |
||||||
|
feedbackId* |
Type: integer<int64> The review ID. |
Responses
200 OK
Information about the added or changed comment.
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: string The type of response. Possible values:
Enum: |
||||||||||||||||||
|
result |
Type: object
Comment on the review. |
400 Bad Request
The request contains incorrect data. More information about the error
Specific errors for the comment update method:
| Description | Explanation | Solution methods |
|---|---|---|
| Duplicate comment | There is already a comment with this text. | — |
| Illegal url in comment text | Links to third-party resources were found in the text of the comment. | Delete the links and, if necessary, add those that lead to the Market. |
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of the Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] A list of errors. Min items: |
|
status |
Type: string The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.