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
}
'import requests
url = "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria"
payload = {
"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
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria"
payload := strings.NewReader("{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}"
response = http.request(request)
puts response.read_body{
"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>"
}
]
}{
"error": "<string>"
}Scraped Products
Bulk publish by criteria
Bulk publish scraped products matching specified criteria
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
}
'import requests
url = "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria"
payload = {
"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
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria"
payload := strings.NewReader("{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/scraped-products/bulk/publish-by-criteria")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"<string>\",\n \"subcategory\": \"<string>\",\n \"require_description\": false,\n \"require_image\": true,\n \"require_size\": false,\n \"require_barcode\": true,\n \"require_category\": false,\n \"require_retailer_mappings\": false,\n \"require_pricing\": false,\n \"default_selling_price\": 1,\n \"is_rfc_item\": false,\n \"limit\": 1000,\n \"dry_run\": false\n}"
response = http.request(request)
puts response.read_body{
"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>"
}
]
}{
"error": "<string>"
}Body
application/json
Bulk publish by criteria request
Category filter
Subcategory filter
Require description
Require image
Require size
Require barcode
Require category
Require retailer mappings
Require pricing
Default selling price
Required range:
x >= 0Is RFC item
Max products to process
Required range:
1 <= x <= 10000Preview without making changes
⌘I