Delete Multiple Projects

DELETE /projects/bulk/{ids} — Use this method to delete the project records with the specified internal IDs.

Parameters

Path parameters

Path parameter

Required / Optional

Description

Type

{ids}

Required

A comma-separated list of internal IDs for projects. The list must not include more than 100 project IDs.

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 key-value pairs, where:

  • The key is each of the internal ID in the {attachement_ids} path parameter in the request.

  • The value is the object that would be returned when using a method to delete the attachment with the internal ID referenced by the key. This object has the following properties:

    • An array containing an object with only the ID of the project deleted, if the operation was successful.

      See Returned Data.

    • A string containing a brief message about the status of your request — for example, “Success” or “Project #237 not found”.

    If your request includes multiple project IDs, both valid and invalid, the request will complete successfully for valid project IDs and return an error message for invalid project IDs — for example, "Access to Project #372 denied". The response status will be 207 Multiple statuses returned.

    If your request includes more than 100 project IDs, an error is returned — for example, "Bulk action limit reached, sent 101 entities of 100 allowed".

message

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

Sample request

            DELETE /rest/v1/projects/bulk/237,327,372 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": [
      {
         "1": {
            "data": [ {"id": "237"}],
            "message": "success"
         },
         "2": {
            "data": [ {"id": "327"}],
            "message": "success"
         },
         "3": {
            "data": [ {"id": "372"}],
            "message": "success"
         }
      }
   ],
   "message": "success"
}