Skip to main content
POST
/
api
/
product-types
/
batch-delete
Batch Delete Product Types
curl --request POST \
  --url https://api.merchantops.ai/api/product-types/batch-delete \
  --header 'Content-Type: application/json' \
  --data '
{
  "keys": [
    "<string>"
  ]
}
'
{
  "deleted": 123,
  "results": [
    {}
  ],
  "total": 123
}

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Request model for batch deleting product types.

keys
string[]
required

List of product type keys to delete

Response

Successful Response

Response model for batch delete operation.

deleted
integer
required

Total number of product types deleted

results
Results · object[]
required

Per-key deletion results

total
integer
required

Total number of product type keys requested for deletion