Для этой функции требуется аутентификация.

Описание
Удаляет сообщение с идентификатором, указанным в запросе, из обсуждения проекта.

Параметры

НазваниеОписаниеТипПример
messageid

sent in url
Идентификатор сообщениячисленный1234
Пример
DELETE api/2.0/project/message/1234
Host: yourportal.r7-office.ru
Content-Type: application/json
Accept: application/json

Возвращает
Сообщение

Пример ответа

application/json

{
  "status": 0,
  "response": {
    "canCreateComment": false,
    "canEdit": true,
    "id": 10,
    "title": "Sample Title",
    "description": null,
    "projectOwner": {
      "id": 123,
      "title": "Sample project",
      "status": 0,
      "isPrivate": false
    },
    "commentsCount": 5,
    "text": "Hello, this is sample message",
    "status": 0,
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "created": "2022-10-12T08:51:51.3241498Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2022-10-12T08:51:51.3241498Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <canCreateComment>false</canCreateComment>
    <canEdit>true</canEdit>
    <id>10</id>
    <title>Sample Title</title>
    <description />
    <projectOwner>
      <id>123</id>
      <title>Sample project</title>
      <status>0</status>
      <isPrivate>false</isPrivate>
    </projectOwner>
    <commentsCount>5</commentsCount>
    <text>Hello, this is sample message</text>
    <status>0</status>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2022-10-12T08:51:51.3241498Z</created>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <updated>2022-10-12T08:51:51.3241498Z</updated>
  </response>
</result>