Skip to main content
POST
/
v1
/
scraped-products
/
bulk
/
publish-by-criteria
Bulk publish by criteria
curl --request POST \
  --url http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria \
  --header 'Content-Type: application/json' \
  --data '
{
  "category": "<string>",
  "subcategory": "<string>",
  "require_description": false,
  "require_image": true,
  "require_size": false,
  "require_barcode": true,
  "require_category": false,
  "require_retailer_mappings": false,
  "require_pricing": false,
  "default_selling_price": 1,
  "is_rfc_item": false,
  "limit": 1000,
  "dry_run": false
}
'
{
  "success": true,
  "dry_run": true,
  "eligible_count": 123,
  "sample_products": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "brand": "<string>",
      "image_url": "<string>",
      "size": "<string>",
      "full_category_hierarchy": "<string>"
    }
  ]
}

Body

application/json

Bulk publish by criteria request

category
string

Category filter

subcategory
string

Subcategory filter

require_description
boolean
default:false

Require description

require_image
boolean
default:true

Require image

require_size
boolean
default:false

Require size

require_barcode
boolean
default:true

Require barcode

require_category
boolean
default:false

Require category

require_retailer_mappings
boolean
default:false

Require retailer mappings

require_pricing
boolean
default:false

Require pricing

default_selling_price
number

Default selling price

Required range: x >= 0
is_rfc_item
boolean
default:false

Is RFC item

limit
integer
default:1000

Max products to process

Required range: 1 <= x <= 10000
dry_run
boolean
default:false

Preview without making changes

Response

Bulk publish by criteria result

Bulk publish by criteria dry run response

success
enum<boolean>
required
Available options:
true,
false
dry_run
enum<boolean>
required
Available options:
true,
false
eligible_count
number
required
sample_products
object[]
required