Update Product catalog.product.update
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
Scope:
catalogWho can execute the method: a user with the "Edit product" permission and one of the following permissions: "View product catalog", "View catalog products", or "Edit selling price"
The catalog.product.update method updates a product in the trade catalog. Fields that are not in the request keep their previous values.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
Product identifier. You can retrieve the identifier using the catalog.product.list method |
|
|
fields* |
Object with the product fields to change (detailed description). If you pass an empty object, the method returns the product unchanged. The product information block cannot be changed: if you pass a different |
Parameter fields
|
Name |
Description |
|
name |
Product name. An empty value causes the "Name is not specified" error |
|
active |
Product activity. Possible values:
Other values are saved as |
|
code |
Symbolic code |
|
xmlId |
External code |
|
sort |
Sorting |
|
createdBy |
Identifier of the user who created the product. You can retrieve the identifier using the user.get method |
|
modifiedBy |
Identifier of the user who modified the product |
|
dateActiveFrom |
Activity start date. Currently the date cannot be set: a string in any format causes the "Incorrect starting date format" error, and a number is ignored. |
|
dateActiveTo |
Activity end date. Currently the date cannot be set: a string in any format causes the "Incorrect expiration date format" error, and a number is ignored. |
|
dateCreate |
Creation date. The field is filled in automatically, so you do not need to pass it: currently a passed date is saved incorrectly, for example, |
|
iblockSectionId |
Identifier of the main section. You can retrieve the identifier using the catalog.section.list method. For a nonexistent section, the method returns the |
|
iblockSection |
Array of identifiers of the sections to link the product to, for example, The array replaces the current section links |
|
previewText |
Preview description |
|
previewTextType |
Type of the preview description. Possible values:
|
|
previewPicture |
Preview picture. An object in the format To delete the picture, pass |
|
detailText |
Detailed description |
|
detailTextType |
Type of the detailed description. Possible values:
|
|
detailPicture |
Detailed picture. An object in the format To delete the picture, pass |
|
quantity |
Available quantity. When inventory management is enabled, the value is not retained: the method returns no error, but the field keeps its previous value |
|
quantityReserved |
Reserved quantity. When inventory management is enabled, the value is not retained: the method returns no error, but the field keeps its previous value |
|
quantityTrace |
Quantity accounting mode. Possible values:
The response returns the resulting value |
|
canBuyZero |
Allow purchase when the product is out of stock. Possible values:
The response returns the resulting value |
|
subscribe |
Allow subscription to the product. Possible values:
The response returns the resulting value |
|
vatId |
VAT rate identifier. You can retrieve the identifier using the catalog.vat.list method. The method does not check that the rate exists: a nonexistent identifier is saved without an error |
|
vatIncluded |
VAT is included in the price. Possible values:
|
|
purchasingPrice |
Purchasing price. When inventory management is enabled, the value is not retained: the method returns no error, but the field keeps its previous value |
|
purchasingCurrency |
Purchasing price currency, for example, When inventory management is enabled, the value is not retained: the method returns no error, but the field keeps its previous value |
|
barcodeMulti |
Unique barcode for each item. Possible values:
|
|
weight |
Weight |
|
length |
Length |
|
width |
Width |
|
height |
Height |
|
measure |
Unit of measure identifier. You can retrieve the identifier using the catalog.measure.list method. The method does not check that the unit of measure exists: a nonexistent identifier is saved without an error |
|
recurSchemeLength |
Payment period length. Used only in the on-premise version for selling content |
|
recurSchemeType |
Time unit of the payment period. Possible values:
Used only in the on-premise version for selling content |
|
trialPriceId |
Identifier of the product for trial payment. Used only in the on-premise version for selling content |
|
withoutOrder |
Renewal without placing an order. Possible values:
Used only in the on-premise version for selling content |
|
propertyN |
Product property value, where Value format:
Pass a single property value as an object: a string instead of an object clears the property value. For a multiple property, values without For a property with the Changing values of "File" properties is described in the How to Update and Delete Files article |
The id, type, available, bundle, and timestampX fields are filled in automatically. The method skips fields that are not in the table without an error.
Working with Product Prices
To change the product price, use the catalog.price.* methods.
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":7651,"fields":{"name":"Basic T-shirt, white","previewText":"Cotton T-shirt, white","detailPicture":{"fileData":["photo.png","iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="]},"property301":{"valueId":4083,"value":"TS-002"},"property305":[{"valueId":4085,"value":"Cotton"},{"value":"Linen"}]}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/catalog.product.update
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":7651,"fields":{"name":"Basic T-shirt, white","previewText":"Cotton T-shirt, white","detailPicture":{"fileData":["photo.png","iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="]},"property301":{"valueId":4083,"value":"TS-002"},"property305":[{"valueId":4085,"value":"Cotton"},{"value":"Linen"}]},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/catalog.product.update
// This snippet is an ES module: top-level await requires type="module" or a bundler.
// $b24 is an already-initialized SDK instance (see the SDK "Get started" guide).
import { Text } from '@bitrix24/b24jssdk'
import type { B24Frame, ISODate } from '@bitrix24/b24jssdk'
declare const $b24: B24Frame
// Shape of the payload returned in result (match the "response handling" section of the page)
type ProductResult = {
element: {
id: number,
iblockId: number,
iblockSectionId: number | null,
iblockSection: number[] | null,
name: string,
code: string | null,
active: string,
xmlId: string,
dateCreate: ISODate,
timestampX: ISODate,
previewPicture: { id: string, url: string, urlMachine: string } | null,
detailPicture: { id: string, url: string, urlMachine: string } | null,
property301: { value: string, valueId: string } | null,
property305: Array<{ value: string, valueId: string }> | null,
[key: string]: unknown,
}
}
try {
const response = await $b24.actions.v2.call.make<ProductResult>({
method: 'catalog.product.update',
params: {
id: 7651,
fields: {
name: 'Basic T-shirt, white',
previewText: 'Cotton T-shirt, white',
detailPicture: {
fileData: ['photo.png', 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='],
},
property301: {
valueId: 4083,
value: 'TS-002',
},
property305: [
{
valueId: 4085,
value: 'Cotton',
},
{
value: 'Linen',
},
],
},
},
requestId: Text.getUuidRfc4122()
})
// The payload is available only on a successful response
if (!response.isSuccess) {
console.error(response.getErrorMessages().join('; '))
} else {
const result = response.getData()!.result
console.info('Updated product id:', result.element.id, 'name:', result.element.name)
}
} catch (error) {
// Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
console.error(error)
}
<!-- Load the SDK (UMD build); it is exposed as the global B24Js -->
<script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
<script>
async function updateProduct() {
try {
// Initialize the SDK inside a Bitrix24 frame
const $b24 = await B24Js.initializeB24Frame()
const response = await $b24.actions.v2.call.make({
method: 'catalog.product.update',
params: {
id: 7651,
fields: {
name: 'Basic T-shirt, white',
previewText: 'Cotton T-shirt, white',
detailPicture: {
fileData: ['photo.png', 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='],
},
property301: {
valueId: 4083,
value: 'TS-002',
},
property305: [
{
valueId: 4085,
value: 'Cotton',
},
{
value: 'Linen',
},
],
},
},
requestId: B24Js.Text.getUuidRfc4122()
})
// The payload is available only on a successful response
if (!response.isSuccess) {
console.error(response.getErrorMessages().join('; '))
return
}
const result = response.getData().result
console.info('Updated product id:', result.element.id, 'name:', result.element.name)
} catch (error) {
// Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
console.error(error)
}
}
document.addEventListener('DOMContentLoaded', updateProduct)
</script>
from b24pysdk.errors import BitrixAPIError, BitrixSDKException
try:
bitrix_response = client.catalog.product.update(
id=7651,
fields={
"name": "Basic T-shirt, white",
"previewText": "Cotton T-shirt, white",
"detailPicture": {
"fileData": ["photo.png", "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="],
},
"property301": {
"valueId": 4083,
"value": "TS-002",
},
"property305": [
{
"valueId": 4085,
"value": "Cotton",
},
{
"value": "Linen",
},
],
},
).response
result = bitrix_response.result
print(result)
except BitrixAPIError as error:
print(
"Bitrix API error",
f"error: {error.error}",
f"error_description: {error.error_description}",
sep="\n",
)
except BitrixSDKException as error:
print(f"Bitrix SDK error: {error.message}")
except Exception as error:
print(f"Unexpected error: {error}")
try {
$response = $b24Service
->core
->call(
'catalog.product.update',
[
'id' => 7651,
'fields' => [
'name' => 'Basic T-shirt, white',
'previewText' => 'Cotton T-shirt, white',
'detailPicture' => [
'fileData' => ['photo.png', 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='],
],
'property301' => [
'valueId' => 4083,
'value' => 'TS-002',
],
'property305' => [
[
'valueId' => 4085,
'value' => 'Cotton',
],
[
'value' => 'Linen',
],
],
],
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error updating product: ' . $e->getMessage();
}
BX24.callMethod(
'catalog.product.update',
{
'id': 7651,
'fields': {
'name': 'Basic T-shirt, white',
'previewText': 'Cotton T-shirt, white',
'detailPicture': {
'fileData': ['photo.png', 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==']
},
'property301': {
'valueId': 4083,
'value': 'TS-002'
},
'property305': [
{
'valueId': 4085,
'value': 'Cotton'
},
{
'value': 'Linen'
}
]
}
},
function(result)
{
if(result.error())
console.error(result.error());
else
console.log(result.data());
}
);
require_once('crest.php');
$result = CRest::call(
'catalog.product.update',
[
'id' => 7651,
'fields' => [
'name' => 'Basic T-shirt, white',
'previewText' => 'Cotton T-shirt, white',
'detailPicture' => [
'fileData' => ['photo.png', 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='],
],
'property301' => [
'valueId' => 4083,
'value' => 'TS-002',
],
'property305' => [
[
'valueId' => 4085,
'value' => 'Cotton',
],
[
'value' => 'Linen',
],
],
],
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
// client and ctx are already created — see the Go SDK section
res, err := client.Core().Call(ctx, "catalog.product.update", b24.Params{
"id": 7651,
"fields": b24.Params{
"name": "Basic T-shirt, white",
"previewText": "Cotton T-shirt, white",
"detailPicture": b24.Params{
"fileData": []string{"photo.png", "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="},
},
"property301": b24.Params{
"valueId": 4083,
"value": "TS-002",
},
"property305": []b24.Params{
b24.Params{
"valueId": 4085,
"value": "Cotton",
},
b24.Params{
"value": "Linen",
},
},
},
})
if err != nil {
return fmt.Errorf("catalog.product.update: %w", err)
}
// The method wraps the response in an object with the "element" key.
raw, ok := b24.Unwrap(res.Result, "element")
if !ok {
return fmt.Errorf("no element key in the response")
}
var item struct {
ID int `json:"id"`
IblockID int `json:"iblockId"`
IblockSectionID int `json:"iblockSectionId"`
Name string `json:"name"`
Code string `json:"code"`
Active string `json:"active"`
XMLID string `json:"xmlId"`
}
if err := json.Unmarshal(raw, &item); err != nil {
return fmt.Errorf("parse response: %w", err)
}
fmt.Println(item.ID, item.Name)
Response Handling
HTTP status: 200
{
"result": {
"element": {
"active": "Y",
"available": "Y",
"barcodeMulti": "N",
"bundle": "N",
"canBuyZero": "Y",
"code": "tshirt-basic",
"createdBy": 1269,
"dateActiveFrom": null,
"dateActiveTo": null,
"dateCreate": "2026-11-05T18:23:16+01:00",
"detailPicture": {
"id": "40043",
"url": "/rest/catalog.product.download?fields%5BfieldName%5D=detailPicture&fields%5BfileId%5D=40043&fields%5BproductId%5D=7651",
"urlMachine": "/rest/catalog.product.download?fields%5BfieldName%5D=detailPicture&fields%5BfileId%5D=40043&fields%5BproductId%5D=7651"
},
"detailText": null,
"detailTextType": "text",
"height": null,
"iblockId": 25,
"iblockSection": [
39,
41
],
"iblockSectionId": 41,
"id": 7651,
"length": null,
"measure": 9,
"modifiedBy": 1269,
"name": "Basic T-shirt, white",
"previewPicture": {
"id": "40041",
"url": "/rest/catalog.product.download?fields%5BfieldName%5D=previewPicture&fields%5BfileId%5D=40041&fields%5BproductId%5D=7651",
"urlMachine": "/rest/catalog.product.download?fields%5BfieldName%5D=previewPicture&fields%5BfileId%5D=40041&fields%5BproductId%5D=7651"
},
"previewText": "Cotton T-shirt, white",
"previewTextType": "text",
"property301": {
"value": "TS-002",
"valueId": "4083"
},
"property305": [
{
"value": "Cotton",
"valueId": "4085"
},
{
"value": "Linen",
"valueId": "4089"
}
],
"purchasingCurrency": null,
"purchasingPrice": null,
"quantity": null,
"quantityReserved": null,
"quantityTrace": "Y",
"recurSchemeLength": null,
"recurSchemeType": "D",
"sort": 500,
"subscribe": "Y",
"timestampX": "2026-11-05T18:23:29+01:00",
"trialPriceId": null,
"type": 1,
"vatId": 1,
"vatIncluded": "Y",
"weight": 200,
"width": null,
"withoutOrder": "N",
"xmlId": "7651"
}
},
"time": {
"start": 1793892209,
"finish": 1793892209.31875,
"duration": 0.31874990463256836,
"processing": 0,
"date_start": "2026-11-05T18:23:29+01:00",
"date_finish": "2026-11-05T18:23:29+01:00",
"operating_reset_at": 1793892600,
"operating": 0.7716009616851807
}
}
Returned Data
|
Name |
Description |
|
result |
Request result containing the updated product |
|
result.element |
Object with information about the updated product |
|
time |
Information about the request execution time |
Error Handling
HTTP status: 400
{
"error":"200040300010",
"error_description":"Access Denied"
}
|
Name |
Description |
|
error |
String error code. It consists of digits, Latin letters, and underscores. It may arrive empty — in that case only |
|
error_description |
Error message for the developer. Do not show it to the end user without processing |
Possible Error Codes
|
Status |
Code |
Description |
Value |
|
|
|
|
No permission to edit the information block element |
|
|
|
|
The section in |
|
|
|
|
No permission to edit the product |
|
|
|
|
No permission to view the product catalog |
|
|
|
|
The product information block was not found |
|
|
|
|
The required |
|
|
|
|
The required |
|
|
Empty value |
|
The product with the specified |
|
|
|
|
The user in |
|
|
|
|
An empty string was passed in |
|
|
|
|
A |
|
|
|
|
An internal error occurred while saving the product |
Validation of the changed fields and product properties can return additional errors that describe a specific field.
Statuses and System Error Codes
HTTP Status: 4xx, 5xx
The errors described below are returned by the REST API itself, not by the logic of a specific method. They can arrive in response to any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The server returned an unexpected response. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The method is blocked because the request resource intensity limit has been exceeded. The block is lifted automatically once the accumulated execution time of the method no longer exceeds the limit |
|
|
|
The request contains no authorization data: neither an access token nor a webhook code was passed |
|
|
|
Methods are called over the HTTPS protocol only |
|
|
|
The REST API is blocked due to overload. This is a manual individual block. To have it lifted, contact Bitrix24 technical support |
|
|
|
REST API access is not active for this account. In Bitrix24 Cloud, check the current plan or trial status: Vibe+ plans include REST API access, while Essentials plans do not. A webhook receives a different error message — |
|
|
|
No active webhook with the specified user identifier and secret code was found |
|
|
|
No method with this name was found. The name is misspelled, the method does not exist in the REST API, or it is unavailable without the required scope |
|
|
|
The request requires broader permissions than the token has: for a webhook these are the permissions granted to it, for an application it is the scope. For an application, the error message ends with |
|
|
|
The access token has expired |
|
|
|
The application is installed, but the Bitrix24 administrator has granted access to it only to specific users |
|
|
|
The public part of the site is closed. To open it on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |