Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Bulk soft delete products

Soft deletes multiple products by setting their status to ‘deleted’. Accepts up to 50 product IDs and returns lists of successful and failed soft deletions with detailed error reasons.

PATCH/api/v1/{team_slug}/{app_slug}/products/bulk/soft-delete
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

Request body
requiredapplication/json

Product IDs to soft delete

product_idsstring[]required
min items 1 · max items 50
Responses
200

Products soft deleted successfully

datainternal_pkg_webserver_v1.BulkDeleteProductsResponserequired
Show properties
failedinternal_pkg_webserver_v1.BulkDeleteFailed[] | null
Show properties
Array of internal_pkg_webserver_v1.BulkDeleteFailed
idstring
reasonstring
successfulstring[] | null
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request (e.g. bad UUID, validation error)

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.enad.io/api/v1/string/string/products/bulk/soft-delete' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "product_ids": [
    "string"
  ]
}'
Response
{
  "data": {
    "failed": [
      {
        "id": "string",
        "reason": "string"
      }
    ],
    "successful": [
      "string"
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}