Creating a new message in the channel
Request
POST /pub/v1/channel/{channel}/message
Path parameters
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| channel | uuid | Channel 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"
],
"title": "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 | |
| title | 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 new message in the channel) |