Skip to main content

Об’єкт XAgreemDocComment

Опис параметрів об'єкта

Параметр

Формат

Опис

id

long

id коментаря

docId

long

id документа (пропозиції)

date

long

дата коментаря

user

String

id користувача

comment

String

текст коментаря

attachments

List<XAgreemDocAttachment>

масив об’єктів; дані файла-вкладення

JSON приклад відповіді при створенні коментаря
{
  "id": 436,
  "docId": 1664,
  "date": 1625662188,
  "user": "uatestuserfx01",
  "comment": "text comment",
  "attachments": [
    {
      "attachment_id": 646,
      "comment_id": 436,
      "file_name": "Модель Кеневин (Cynefin framework).pdf",
      "file_type": "application/pdf"
    },
    {
      "attachment_id": 648,
      "comment_id": 436,
      "file_name": "1625493467304.png",
      "file_type": "image/png"
    },
    {
      "attachment_id": 650,
      "comment_id": 436,
      "file_name": "323232323.png",
      "file_type": "image/png"
    }
  ]
}
JSON приклад відповіді при отриманні списку коментарів
[
{
"docId": 378,
  "date": 1589454390,
  "user": "uatestuserfx01",
  "comment": "qwertyui"
},
{
 "docId": 378,
 "date": 1589454390,
 "user": "uatestuserfx01",
 "comment": "helloworld"
}
]