Creating a comment on a channel message
Request
POST /pub/v1/channel/{channel}/message/{id}/comment
Path parameters
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| channel | uuid | Channel ID |
Required |
| id | uuid | Message ID |
Required |
Request body
The resource sent in the request body is Запрос на создание комментария к сообщению в канале. It contains the following writable properties:
{
"body": "string",
"files": [
{
"hash": "string",
"name": "string",
"size": "int64"
}
],
"mentions": [
"string"
]
}
Properties
| Name | Type | Description | Additional |
|---|---|---|---|
| body | string | Тело сообщения | Optional |
| files[] | array | Optional | |
| files[].hash | string | Хэш | Optional |
| files[].name | string | Название | Optional |
| files[].size | int64 | Размер | Optional |
| mentions[] | array of string | Optional |
Authorization
This request requires the use of one of following authorisation methods:
API key
Response
The following HTTP status codes may be returned:
| Status code | Description | Resource |
|---|---|---|
| 200 | OK Successful response |
Ответ на создание комментария к сообщению в канале |
| 400 | Bad Request Request error |
Ответ, содержащий информацию об ошибке |
| 403 | Forbidden Access denied |
Ответ, содержащий информацию об ошибке |
| 429 | Too many requests |
Too many requests (Creating a comment on a channel message) |