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: