Get the List of Replies in a Project Discussion Thread
GET /threaded-discussions/{id}/messages/{message_id}/replies
— Use this method to retrieve the list of replies to the original message with the specified internal ID and 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 each project discussion message returned. Response Data Modifiers. |
string |
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
|
Optional |
A limit on the length of the page. See Pagination. |
integer |
|
Optional |
A cursor for use in pagination. See Pagination. |
integer |
|
Optional |
The attribute to sort the list by. Use a plus sign ( |
string |
|
Optional |
A URL-encoded query expression used to filter the resource collection and return the objects matching the specified search criteria. See Filtering. |
string |
Response definitions
A successful request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
An array containing the project discussion message [ |
|
An array of expanded objects, if the |
|
An object containing response metadata. 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
GET /rest/v1/threaded-discussions/project-247/messages/8/replies/ HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Authorization: Bearer <OAuth2_access_token>
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": [
{
...
},
{
...
},
...
],
"message": "success",
"meta": {
"rowsPerPage": 100,
"totalPages": 2,
"totalRows": 138,
"links": [
{
"rel": "first",
"href": "https://company-id.app.netsuitesuiteprojectspro.com/rest/v1/threaded-discussions/project-247/messages/8/replies"
},
{
"rel": "self",
"href": "https://company-id.app.netsuitesuiteprojectspro.com/rest/v1/threaded-discussions/project-247/messages/8/replies"
},
{
"rel": "next",
"href": "https://company-id.app.netsuitesuiteprojectspro.com/rest/v1/threaded-discussions/project-247/messages/8/replies?limit=100&offset=100"
},
{
"rel": "last",
"href": "https://company-id.app.netsuitesuiteprojectspro.com/rest/v1/threaded-discussions/project-247/messages/8/replies?limit=100&offset=100"
}
]
}
}