Update marketplace product
curl --request POST \
--url https://api.zochil.io/v3/monitoring/marketplace-products/update \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"status": "<string>",
"category_id": "<string>",
"image": "<string>",
"price": 123,
"sale_price": 123,
"wholesale_price": 123,
"description": "<string>",
"images": [
"<string>"
],
"featured": true,
"stock": 123,
"bundle_size": 123,
"all_options": [
{}
],
"has_delivery": true,
"has_inventory": true,
"brand_id": "<string>",
"categories": [
"<string>"
],
"short_description": "<string>",
"video_url": "<string>",
"main_category_codes": [
"<string>"
],
"specs": [
{}
],
"instagram_posts": [
{}
],
"banner": "<string>",
"event_id": "<string>",
"is_ticket": true,
"banner_description": "<string>",
"main_category_id": "<string>",
"main_category_ids": [
"<string>"
],
"product_video_url": "<string>",
"ticket_custom_url": "<string>",
"hide_price": true,
"source": "<string>",
"product_type": "<string>",
"shipment_duration": "<string>",
"product_weight": 123,
"extra": {},
"list_preorder_marketplace": true
}
'import requests
url = "https://api.zochil.io/v3/monitoring/marketplace-products/update"
payload = {
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"status": "<string>",
"category_id": "<string>",
"image": "<string>",
"price": 123,
"sale_price": 123,
"wholesale_price": 123,
"description": "<string>",
"images": ["<string>"],
"featured": True,
"stock": 123,
"bundle_size": 123,
"all_options": [{}],
"has_delivery": True,
"has_inventory": True,
"brand_id": "<string>",
"categories": ["<string>"],
"short_description": "<string>",
"video_url": "<string>",
"main_category_codes": ["<string>"],
"specs": [{}],
"instagram_posts": [{}],
"banner": "<string>",
"event_id": "<string>",
"is_ticket": True,
"banner_description": "<string>",
"main_category_id": "<string>",
"main_category_ids": ["<string>"],
"product_video_url": "<string>",
"ticket_custom_url": "<string>",
"hide_price": True,
"source": "<string>",
"product_type": "<string>",
"shipment_duration": "<string>",
"product_weight": 123,
"extra": {},
"list_preorder_marketplace": True
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
sku: '<string>',
status: '<string>',
category_id: '<string>',
image: '<string>',
price: 123,
sale_price: 123,
wholesale_price: 123,
description: '<string>',
images: ['<string>'],
featured: true,
stock: 123,
bundle_size: 123,
all_options: [{}],
has_delivery: true,
has_inventory: true,
brand_id: '<string>',
categories: ['<string>'],
short_description: '<string>',
video_url: '<string>',
main_category_codes: ['<string>'],
specs: [{}],
instagram_posts: [{}],
banner: '<string>',
event_id: '<string>',
is_ticket: true,
banner_description: '<string>',
main_category_id: '<string>',
main_category_ids: ['<string>'],
product_video_url: '<string>',
ticket_custom_url: '<string>',
hide_price: true,
source: '<string>',
product_type: '<string>',
shipment_duration: '<string>',
product_weight: 123,
extra: {},
list_preorder_marketplace: true
})
};
fetch('https://api.zochil.io/v3/monitoring/marketplace-products/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zochil.io/v3/monitoring/marketplace-products/update",
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([
'id' => '<string>',
'name' => '<string>',
'sku' => '<string>',
'status' => '<string>',
'category_id' => '<string>',
'image' => '<string>',
'price' => 123,
'sale_price' => 123,
'wholesale_price' => 123,
'description' => '<string>',
'images' => [
'<string>'
],
'featured' => true,
'stock' => 123,
'bundle_size' => 123,
'all_options' => [
[
]
],
'has_delivery' => true,
'has_inventory' => true,
'brand_id' => '<string>',
'categories' => [
'<string>'
],
'short_description' => '<string>',
'video_url' => '<string>',
'main_category_codes' => [
'<string>'
],
'specs' => [
[
]
],
'instagram_posts' => [
[
]
],
'banner' => '<string>',
'event_id' => '<string>',
'is_ticket' => true,
'banner_description' => '<string>',
'main_category_id' => '<string>',
'main_category_ids' => [
'<string>'
],
'product_video_url' => '<string>',
'ticket_custom_url' => '<string>',
'hide_price' => true,
'source' => '<string>',
'product_type' => '<string>',
'shipment_duration' => '<string>',
'product_weight' => 123,
'extra' => [
],
'list_preorder_marketplace' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$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 := "https://api.zochil.io/v3/monitoring/marketplace-products/update"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
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("https://api.zochil.io/v3/monitoring/marketplace-products/update")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zochil.io/v3/monitoring/marketplace-products/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}"
response = http.request(request)
puts response.read_bodyProducts
Update marketplace product
Update an existing marketplace product
POST
/
marketplace-products
/
update
Update marketplace product
curl --request POST \
--url https://api.zochil.io/v3/monitoring/marketplace-products/update \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"status": "<string>",
"category_id": "<string>",
"image": "<string>",
"price": 123,
"sale_price": 123,
"wholesale_price": 123,
"description": "<string>",
"images": [
"<string>"
],
"featured": true,
"stock": 123,
"bundle_size": 123,
"all_options": [
{}
],
"has_delivery": true,
"has_inventory": true,
"brand_id": "<string>",
"categories": [
"<string>"
],
"short_description": "<string>",
"video_url": "<string>",
"main_category_codes": [
"<string>"
],
"specs": [
{}
],
"instagram_posts": [
{}
],
"banner": "<string>",
"event_id": "<string>",
"is_ticket": true,
"banner_description": "<string>",
"main_category_id": "<string>",
"main_category_ids": [
"<string>"
],
"product_video_url": "<string>",
"ticket_custom_url": "<string>",
"hide_price": true,
"source": "<string>",
"product_type": "<string>",
"shipment_duration": "<string>",
"product_weight": 123,
"extra": {},
"list_preorder_marketplace": true
}
'import requests
url = "https://api.zochil.io/v3/monitoring/marketplace-products/update"
payload = {
"id": "<string>",
"name": "<string>",
"sku": "<string>",
"status": "<string>",
"category_id": "<string>",
"image": "<string>",
"price": 123,
"sale_price": 123,
"wholesale_price": 123,
"description": "<string>",
"images": ["<string>"],
"featured": True,
"stock": 123,
"bundle_size": 123,
"all_options": [{}],
"has_delivery": True,
"has_inventory": True,
"brand_id": "<string>",
"categories": ["<string>"],
"short_description": "<string>",
"video_url": "<string>",
"main_category_codes": ["<string>"],
"specs": [{}],
"instagram_posts": [{}],
"banner": "<string>",
"event_id": "<string>",
"is_ticket": True,
"banner_description": "<string>",
"main_category_id": "<string>",
"main_category_ids": ["<string>"],
"product_video_url": "<string>",
"ticket_custom_url": "<string>",
"hide_price": True,
"source": "<string>",
"product_type": "<string>",
"shipment_duration": "<string>",
"product_weight": 123,
"extra": {},
"list_preorder_marketplace": True
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
sku: '<string>',
status: '<string>',
category_id: '<string>',
image: '<string>',
price: 123,
sale_price: 123,
wholesale_price: 123,
description: '<string>',
images: ['<string>'],
featured: true,
stock: 123,
bundle_size: 123,
all_options: [{}],
has_delivery: true,
has_inventory: true,
brand_id: '<string>',
categories: ['<string>'],
short_description: '<string>',
video_url: '<string>',
main_category_codes: ['<string>'],
specs: [{}],
instagram_posts: [{}],
banner: '<string>',
event_id: '<string>',
is_ticket: true,
banner_description: '<string>',
main_category_id: '<string>',
main_category_ids: ['<string>'],
product_video_url: '<string>',
ticket_custom_url: '<string>',
hide_price: true,
source: '<string>',
product_type: '<string>',
shipment_duration: '<string>',
product_weight: 123,
extra: {},
list_preorder_marketplace: true
})
};
fetch('https://api.zochil.io/v3/monitoring/marketplace-products/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zochil.io/v3/monitoring/marketplace-products/update",
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([
'id' => '<string>',
'name' => '<string>',
'sku' => '<string>',
'status' => '<string>',
'category_id' => '<string>',
'image' => '<string>',
'price' => 123,
'sale_price' => 123,
'wholesale_price' => 123,
'description' => '<string>',
'images' => [
'<string>'
],
'featured' => true,
'stock' => 123,
'bundle_size' => 123,
'all_options' => [
[
]
],
'has_delivery' => true,
'has_inventory' => true,
'brand_id' => '<string>',
'categories' => [
'<string>'
],
'short_description' => '<string>',
'video_url' => '<string>',
'main_category_codes' => [
'<string>'
],
'specs' => [
[
]
],
'instagram_posts' => [
[
]
],
'banner' => '<string>',
'event_id' => '<string>',
'is_ticket' => true,
'banner_description' => '<string>',
'main_category_id' => '<string>',
'main_category_ids' => [
'<string>'
],
'product_video_url' => '<string>',
'ticket_custom_url' => '<string>',
'hide_price' => true,
'source' => '<string>',
'product_type' => '<string>',
'shipment_duration' => '<string>',
'product_weight' => 123,
'extra' => [
],
'list_preorder_marketplace' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$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 := "https://api.zochil.io/v3/monitoring/marketplace-products/update"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
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("https://api.zochil.io/v3/monitoring/marketplace-products/update")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zochil.io/v3/monitoring/marketplace-products/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"sku\": \"<string>\",\n \"status\": \"<string>\",\n \"category_id\": \"<string>\",\n \"image\": \"<string>\",\n \"price\": 123,\n \"sale_price\": 123,\n \"wholesale_price\": 123,\n \"description\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"featured\": true,\n \"stock\": 123,\n \"bundle_size\": 123,\n \"all_options\": [\n {}\n ],\n \"has_delivery\": true,\n \"has_inventory\": true,\n \"brand_id\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"short_description\": \"<string>\",\n \"video_url\": \"<string>\",\n \"main_category_codes\": [\n \"<string>\"\n ],\n \"specs\": [\n {}\n ],\n \"instagram_posts\": [\n {}\n ],\n \"banner\": \"<string>\",\n \"event_id\": \"<string>\",\n \"is_ticket\": true,\n \"banner_description\": \"<string>\",\n \"main_category_id\": \"<string>\",\n \"main_category_ids\": [\n \"<string>\"\n ],\n \"product_video_url\": \"<string>\",\n \"ticket_custom_url\": \"<string>\",\n \"hide_price\": true,\n \"source\": \"<string>\",\n \"product_type\": \"<string>\",\n \"shipment_duration\": \"<string>\",\n \"product_weight\": 123,\n \"extra\": {},\n \"list_preorder_marketplace\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
application/json
Response
200
Product updated successfully

