Delete Attachments Associated with a Receipt
DELETE /receipts/{id}/attachments/{attachment_ids}
— Use this method to delete attachments with the specified attachment IDs associated with the receipt with the specified internal ID, or clear the association between the workspace document with the specified attachment ID and the receipt with the specified internal ID.
Parameters
Path parameters
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Required |
The internal ID of the receipt. |
integer |
|
Required |
A comma-separated list of internal IDs for the attachments. The list must not include more than 1000 attachment IDs. |
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 key-value pairs, where:
|
|
A string containing a brief message about the status of your request — for example, |
Sample request
DELETE receipts/2674/attachments/4985,4987 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": [
{
"4985" : {
"data": [{
"id": "4985"
}],
"message": "success"
},
"4987" : {
"data": [{
"id": "4987"
}],
"message": "success"
}
}
],
"message": "success"
}