curl --request PATCH \
--url https://api.vizochok.com/api/v1/catalog/products/{sku} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"category_path": "<string>",
"brand": "<string>",
"description": "<string>",
"ingredients": "<string>",
"country": "<string>",
"unit": "<string>",
"quantity_step": 123,
"min_quantity": 123,
"weight": 123,
"volume": 123,
"image_url": "<string>",
"attributes": {},
"barcode": "<string>",
"is_active": true
}
'import requests
url = "https://api.vizochok.com/api/v1/catalog/products/{sku}"
payload = {
"name": "<string>",
"category_path": "<string>",
"brand": "<string>",
"description": "<string>",
"ingredients": "<string>",
"country": "<string>",
"unit": "<string>",
"quantity_step": 123,
"min_quantity": 123,
"weight": 123,
"volume": 123,
"image_url": "<string>",
"attributes": {},
"barcode": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
category_path: '<string>',
brand: '<string>',
description: '<string>',
ingredients: '<string>',
country: '<string>',
unit: '<string>',
quantity_step: 123,
min_quantity: 123,
weight: 123,
volume: 123,
image_url: '<string>',
attributes: {},
barcode: '<string>',
is_active: true
})
};
fetch('https://api.vizochok.com/api/v1/catalog/products/{sku}', 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.vizochok.com/api/v1/catalog/products/{sku}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'category_path' => '<string>',
'brand' => '<string>',
'description' => '<string>',
'ingredients' => '<string>',
'country' => '<string>',
'unit' => '<string>',
'quantity_step' => 123,
'min_quantity' => 123,
'weight' => 123,
'volume' => 123,
'image_url' => '<string>',
'attributes' => [
],
'barcode' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://api.vizochok.com/api/v1/catalog/products/{sku}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.vizochok.com/api/v1/catalog/products/{sku}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vizochok.com/api/v1/catalog/products/{sku}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"sku": "<string>",
"updated_fields": [
"<string>"
],
"re_embedded": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Patch Product
Partial update of a product. Re-embeds only if content fields change.
curl --request PATCH \
--url https://api.vizochok.com/api/v1/catalog/products/{sku} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"category_path": "<string>",
"brand": "<string>",
"description": "<string>",
"ingredients": "<string>",
"country": "<string>",
"unit": "<string>",
"quantity_step": 123,
"min_quantity": 123,
"weight": 123,
"volume": 123,
"image_url": "<string>",
"attributes": {},
"barcode": "<string>",
"is_active": true
}
'import requests
url = "https://api.vizochok.com/api/v1/catalog/products/{sku}"
payload = {
"name": "<string>",
"category_path": "<string>",
"brand": "<string>",
"description": "<string>",
"ingredients": "<string>",
"country": "<string>",
"unit": "<string>",
"quantity_step": 123,
"min_quantity": 123,
"weight": 123,
"volume": 123,
"image_url": "<string>",
"attributes": {},
"barcode": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
category_path: '<string>',
brand: '<string>',
description: '<string>',
ingredients: '<string>',
country: '<string>',
unit: '<string>',
quantity_step: 123,
min_quantity: 123,
weight: 123,
volume: 123,
image_url: '<string>',
attributes: {},
barcode: '<string>',
is_active: true
})
};
fetch('https://api.vizochok.com/api/v1/catalog/products/{sku}', 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.vizochok.com/api/v1/catalog/products/{sku}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'category_path' => '<string>',
'brand' => '<string>',
'description' => '<string>',
'ingredients' => '<string>',
'country' => '<string>',
'unit' => '<string>',
'quantity_step' => 123,
'min_quantity' => 123,
'weight' => 123,
'volume' => 123,
'image_url' => '<string>',
'attributes' => [
],
'barcode' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://api.vizochok.com/api/v1/catalog/products/{sku}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.vizochok.com/api/v1/catalog/products/{sku}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vizochok.com/api/v1/catalog/products/{sku}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"category_path\": \"<string>\",\n \"brand\": \"<string>\",\n \"description\": \"<string>\",\n \"ingredients\": \"<string>\",\n \"country\": \"<string>\",\n \"unit\": \"<string>\",\n \"quantity_step\": 123,\n \"min_quantity\": 123,\n \"weight\": 123,\n \"volume\": 123,\n \"image_url\": \"<string>\",\n \"attributes\": {},\n \"barcode\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"sku": "<string>",
"updated_fields": [
"<string>"
],
"re_embedded": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Partial update model. All fields are optional.
Product display name
Category hierarchy, e.g. "Dairy > Milk"
Product brand name
Product description for search and AI context
Ingredients list (plain text)
Country of origin
Unit of measurement: "pcs", "kg", "l", "g", "ml"
Minimum increment for quantity selector (e.g. 0.1 for products sold by weight)
Minimum order quantity (e.g. 0.2 for 200g minimum)
Product weight in grams (for packaged goods)
Product volume in milliliters (for liquids)
URL to product image
Custom key-value attributes (e.g. {"organic": true, "fat_percent": "2.5"})
EAN/UPC barcode
Set to false to soft-delete the product