Get Started
Portal api methods
Help

POST api/2.0/project/{projectid}/message This function requires authentication

Description

Adds a message to the selected discussion within the project with the ID specified in the request

Parameters
Name Description Type Example
projectid
sent in url
Project ID number 1234
title
sent in body
Discussion title string some text
content
sent in body
Message text string some text
participants
sent in body
IDs (GUIDs) of users separated with ',' string some text
notify
sent in body
Notify participants
optional
Bool value true
Example
POST api/2.0/project/1234/message
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "title": "some text",
  "content": "some text",
  "participants": "some text",
  "notify": null
}
Returns

Example Response

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": "2019-12-15T06:37:50.9461065Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2019-12-15T06:37:50.9461065Z"
  }
}

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>2019-12-15T06:37:50.9461065Z</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>2019-12-15T06:37:50.9461065Z</updated>
  </response>
</result>