curl --location 'https://crm.private-crm.ru/api/public/user' \
--header 'Identifier: demo' \
--header 'Application-key: tokenkey' \
--form 'client="1566"' \
--form 'u_name="Измененный тестовый клиент"' \
--form 'u_phone1="79991231000"' \
--form 'op_id="1"' \
--form 'client_type="0"' \
--form 'u_stopproducts_groups[]="9"' \
--form 'u_stopproducts[]="2800"' \
--form 'u_stopdishes_groups[]="2"' \
--form 'u_stopdishes[]="336"' \
--form 'v_birthday="01.01.2004"' \
--form 'u_sex_id="1"' \
--form 'u_email="email@provider.zone"' \
--form 'source_id="1"' \
--form 'status="1"' \
--form 'notification_settings[preferred_channel]="sms"' \
--form 'notification_settings[templates][0]="order_created"' \
--form 'notification_settings[templates][1]="courier_contact"'[
{
"id": 8761,
"name": "Измененный тестовый клиент",
"email": "email@provider.zone",
"u_sex_id": "1",
"v_birthday": "01.01.2004",
"phone": "+7 999 123-10-00",
"contacts": [],
"adr": "",
"adrs": [],
"stopProducts": [
{
"id": 31,
"title": "Авокадо",
"price": 569.19,
"type": "product",
"deleted": 0
}
],
"stopDishes": [
{
"id": 1321,
"title": "Овсяная каша с бананом",
"price": 0,
"net_price": 11.6593,
"weight": 185,
"d_image_link_full": null,
"cooking_title": "Разогреть в микроволновой печи.",
"is_deleted": false,
"d_kal": 169.03,
"d_belki": 5.95,
"d_jiry": 6.49,
"d_uglevody": 21.62,
"d_description": "",
"d_technology": "",
"d_weight_step": 1,
"d_weight_max": 600,
"d_weight_min": 1,
"translations": []
}
],
"stopProductsGroups": [
{
"id": 1000002,
"title": "Группа исключений: Все виды рыбы",
"price": 0,
"type": "product-group",
"products_ids": [
2156,
2237,
2263,
2567,
2708,
2718,
3834,
3836
],
"deleted": false
}
],
"stopDishesGroups": [],
"bonus_from_payment": 0,
"maximum_bonus_payment": 50,
"is_discount_regular": true,
"comment_manager": null,
"comment_description": null,
"comment_delivery": null,
"comment_user": null,
"discount": 0,
"bonus_balance": 0,
"op_id": "1",
"notification_settings": {
"preferred_channel": "sms",
"available_channels": [
"sms"
],
"templates": [
{
"code": "order_created",
"enabled": true
},
{
"code": "courier_contact",
"enabled": true
},
{
"code": "order_ended",
"enabled": false
}
]
}
}
]