Post a Reply in a Project Discussion Message Thread
POST /threaded-discussions/{id}/messages/{message_id}/replies
— Use this method to create a new reply in thread to the original message with the specified internal ID in the threaded discussion for the object specified with a table name and internal ID in the threaded discussion internal ID.
Parameters
Path parameters
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Required |
The internal ID of the threaded discussion associated with the message. This internal ID is derived from the name of the table corresponding to the type of object the discussion is about ( For example, the internal ID if the project discussion about a project with internal ID |
string |
|
Required |
The internal ID of the project discussion message. |
integer |
Query string parameter
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Optional |
A comma-separated list of attributes available for expansion. The comma-separated list may include spaces (or
Note:
The |
string |
|
Optional |
A comma-separated list of attributes to include in the response. If not specified, the response includes all attributes for the project discussion message returned. |
string |
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
|
Optional |
If set to any value other than |
Boolean |
Request body
The ThreadedMessage
object to be created. The object must include valid key-value pairs for all required attributes and cannot include key-value pairs for read-only attributes. For information about the ThreadedMessage
object model, see ThreadedMessage object properties.
Response definitions
A successful request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
An array containing one of the following:
See Returned Data. |
|
An array of expanded objects, if the |
|
An object containing information about objects referenced by internal ID in the |
|
A string containing a brief message about the status of your request — for example, |
A failed request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
A string containing a brief message about the status of your request. |
Sample request
POST /rest/v1/projects/247/threaded-messages/ HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Content-Type: application/json
Authorization: Bearer <OAuth2_access_token>
{
"content": "This message starts the project discussion"
}
In the example, <OAuth2_access_token>
is the OAuth 2.0 access token obtained for the client application connecting to SuiteProjects Pro. See Authentication.
Sample response
{
"data": [
{
"id": 8
}
],
"message": "success"
}