Delete a Message from a Project Discussion
DELETE /threaded-discussions/{id}/messages/{message_id}
— Use this method to delete the message (original message or reply) 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 |
The internal ID of the filter set to be applied.
|
integer |
Response definitions
A successful request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
An array containing an object with only the ID of the project discussion message deleted. See Returned Data. |
|
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 — for example, |
Sample request
DELETE /rest/v1/threaded-discussions/project-247/messages/8 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": [
{
"id": 8
}
],
"message": "success"
}