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

{id}

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 (<tableName>) and the internal ID of the object the discussion is about (<recordId>): <tableName>-<recordId>.

For example, the internal ID if the project discussion about a project with internal ID 247 is project-247.

string

{message_id}

Required

The internal ID of the project discussion message.

integer

Query string parameter

Path parameter

Required / Optional

Description

Type

filterSetId

Optional

The internal ID of the filter set to be applied.

  • When specified, the request is successful only if the action is available when the specified filter set is active in SuiteProjects Pro. The filter set with the specified internal ID must exist and must be associated with the user who authorized the application as per the access token.

  • Otherwise and by default, the primary filter set associated with the user who authorized the application is applied.

integer

Response definitions

A successful request returns a JSON object with the following properties:

Property

Description

data

An array containing an object with only the ID of the project discussion message deleted.

See Returned Data.

message

A string containing a brief message about the status of your request — for example, “Success”.

A failed request returns a JSON object with the following properties:

Property

Description

message

A string containing a brief message about the status of your request — for example, “ThreadedMessage #8 not found”.

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"
}