API

Add modifier

POST/api/crm/v2/modifiers.addv2
operationId: modifiers.add

Authorization

api-token + language + role

Query parameters

branch_idintegerrequired

Example: 8785

Request body application/json

object
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
group_idintegerrequired

Example: 17589422

costnumberrequired

Example: 35.05

vendor_codestring

SKU

Example: d1763be5-76a6-4ddb-8e11-3a1f91de199c::d835bcc9-1349-4911-af1d-131fd73141e8

proteinsinteger

Proteins, g

Example: 50

fatsinteger

Fats, g

Example: 70

carbohydratesinteger

Carbohydrates, g

Example: 100

caloriesinteger

Calories, kcal

Example: 80

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject