PUT api/Requests/Comments/{id}/Join

Присоединяет текущего пользователя к комментарию типа "уточнение-вопрос"

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Идентификатор комментария (уточнения)

integer

Required

Body Parameters

None.

Response Information

Success Resource Description

Сохраненное уточнение

CommentViewModel
NameDescriptionTypeAdditional information
Permissions

Разрешения на действия с комментарием

CommentPermissionSet

None.

Id

Идентифкатор комментария

integer

None.

Author

автор комментария - пользователь

UserNameViewModel

None.

JointAuthors

Соавторы

Collection of UserNameViewModel

None.

Addressees

Адресаты комментария

Collection of CommentAddresseeViewModel

None.

Text

Текст сообщения

string

None.

CreateDate

Дата комментария

date

None.

CommentType

Тип комментария

CommentType

None.

Answers

Перечень ответов

Collection of CommentViewModel

None.

ReadStatus

Состояние прочтения комментария

CommentReadStatus

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Permissions": 0,
  "Id": 1,
  "Author": {
    "Id": 1,
    "Login": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "RegionId": 5,
    "Appoint": "sample string 6",
    "Organization": "sample string 7"
  },
  "JointAuthors": [
    {
      "Id": 1,
      "Login": "sample string 2",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "RegionId": 5,
      "Appoint": "sample string 6",
      "Organization": "sample string 7"
    }
  ],
  "Addressees": [
    {
      "Id": 1,
      "User": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "ReadDate": "2022-08-17T04:48:52+03:00",
      "IsReaded": true
    },
    {
      "Id": 1,
      "User": {
        "Id": 1,
        "Login": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "RegionId": 5,
        "Appoint": "sample string 6",
        "Organization": "sample string 7"
      },
      "ReadDate": "2022-08-17T04:48:52+03:00",
      "IsReaded": true
    }
  ],
  "Text": "sample string 2",
  "CreateDate": "2022-08-17T04:48:52+03:00",
  "CommentType": 0,
  "Answers": [],
  "ReadStatus": 0
}

text/html, multipart/form-data

Sample:
{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:48:52+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:48:52+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T04:48:52+03:00","CommentType":0,"Answers":[],"ReadStatus":0}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.