Skip to main content
POST
/
v1
/
scraped-products
/
bulk
/
unpublish
Bulk unpublish
curl --request POST \
  --url http://localhost:3000/v1/scraped-products/bulk/unpublish \
  --header 'Content-Type: application/json' \
  --data '
{
  "category": "<string>",
  "subcategory": "<string>",
  "has_image": "all",
  "has_barcode": "all",
  "has_retailer_mappings": "all",
  "has_pricing": "all",
  "dry_run": false,
  "limit": 1000
}
'
{
  "success": true,
  "unpublished_count": 123,
  "message": "<string>",
  "dry_run": true,
  "eligible_count": 123
}

Body

application/json

Bulk unpublish request

category
string

Category filter

subcategory
string

Subcategory filter

has_image
enum<string>
default:all

Has image filter

Available options:
true,
false,
all
has_barcode
enum<string>
default:all

Has barcode filter

Available options:
true,
false,
all
has_retailer_mappings
enum<string>
default:all

Has retailer mappings filter

Available options:
true,
false,
all
has_pricing
enum<string>
default:all

Has pricing filter

Available options:
true,
false,
all
dry_run
boolean
default:false

Preview without making changes

limit
integer
default:1000

Max products to process

Required range: 1 <= x <= 10000

Response

Bulk unpublish result

Bulk unpublish response

success
enum<boolean>
required
Available options:
true,
false
unpublished_count
number
required
message
string
dry_run
boolean
eligible_count
number