API

Update item

POST/api/crm/v2/items.updatev2
operationId: items.update

Authorization

api-token + language + role

Query parameters

branch_idintegerrequired

Example: 8785

Request body multipart/form-data

object

Arrays of equal length: parameter_id, description, measure_index, old_cost, cost, bonuses, proteins, fats, carbohydrates, calories, vendor_code, modifiers_groups_ids

idintegerrequired

Example: 18086800

nameobject (TranslationField) required

Translatable catalog field; has the same structure in both response and request. When creating, each network language not present in translations remains empty and is queued for AI translation. When updating, only languages from translations are saved: a language not present in the object retains its previous value if the original has not changed; an empty value clears the translation and queues it for AI translation. Changing the original clears translations that were not updated—these no longer match the original; a translation submitted with a different value is saved as a manual edit. This clearing occurs only while automatic translation is enabled for the network. Values in unpublished languages are rejected; values in languages outside the network's language set are ignored.

defaultstring

Код исходного языка сети; в запросе должен совпадать с настройкой сети

Example: ru

translationsobjectrequired

Value by language code; if no translation — no key

Dictionary values
string
separate_export_enabledboolean

Example: false

compositionobject (TranslationField) required

Translatable catalog field; has the same structure in both response and request. When creating, each network language not present in translations remains empty and is queued for AI translation. When updating, only languages from translations are saved: a language not present in the object retains its previous value if the original has not changed; an empty value clears the translation and queues it for AI translation. Changing the original clears translations that were not updated—these no longer match the original; a translation submitted with a different value is saved as a manual edit. This clearing occurs only while automatic translation is enabled for the network. Values in unpublished languages are rejected; values in languages outside the network's language set are ignored.

defaultstring

Код исходного языка сети; в запросе должен совпадать с настройкой сети

Example: ru

translationsobjectrequired

Value by language code; if no translation — no key

Dictionary values
string
excise_enabledboolean

Example: false

date_availablestring (DataTimeFormat)

Example: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Example: 17:45 06/05/2024

days_of_weekarray of integerrequired
time_periodsarray of string
labels_idsarray of integer
template_modifiers_groups_idsarray of integer
modifiers_multiplier_enabledboolean

Example: true

only_informing_enabledboolean

Example: true

hide_cost_if_zero_enabledboolean

Example: true

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
image_desktopobject (ImageSource)

Image upload via multipart/form-data with optional cropping

binarystring · binary
cropobject

Image crop coordinates

offsetsobject
xintegerrequired

Example: 100

yintegerrequired

Example: 50

sizesobject
widthintegerrequired

Example: 800

heightintegerrequired

Example: 600

image_mobileobject (ImageSource)

Image upload via multipart/form-data with optional cropping

binarystring · binary
cropobject

Image crop coordinates

offsetsobject
xintegerrequired

Example: 100

yintegerrequired

Example: 50

sizesobject
widthintegerrequired

Example: 800

heightintegerrequired

Example: 600

parameter_idarray of stringrequired

Item parameter IDs, one per parameter: for a new parameter — an empty string, for an existing one — its ID. Elements are matched by index with cost, description, and measure_index.

descriptionarray of stringrequired
measure_indexarray of integerrequired
old_costarray of number
costarray of numberrequired
bonusesarray of number
proteinsarray of integer
fatsarray of integer
carbohydratesarray of integer
caloriesarray of integer
vendor_codearray of stringrequired
modifiers_groups_idsarray of array of integer

modifiers_groups_ids[0][17589436, 17589435], modifiers_groups_ids[1][17589436, 17589435]

category_idintegerrequired

Example: 3386598

typestringrequired

Values:bouquetproductcombodishdrinkgift

Example: product

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject
new_ids_parametersarray of integer