Update Recipe By Id
PUT
{{ecommercev2_url}}/recipes/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{ecommercev2_url}}/recipes/683351bb39615d093e047ea6' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": {
"en": "Grilled Chicken with Vegetables",
"ar": "دجاج مشوي مع الخضار"
},
"description": {
"en": "A healthy and delicious grilled chicken recipe with fresh vegetables",
"ar": "وصفة دجاج مشوي صحية ولذيذة مع الخضار الطازجة"
},
"howToCook": {
"en": "1. Season chicken with herbs\n2. Grill for 15 minutes\n3. Add vegetables and cook for 10 more minutes",
"ar": "1. تتبيل الدجاج بالأعشاب\n2. الشوي لمدة 15 دقيقة\n3. إضافة الخضار والطبخ لمدة 10 دقائق إضافية"
},
"imagesHowToCook": [
{
"_id": "507f1f77bcf86cd799439020",
"path": "https://cdn.example.com/cooking-steps/step1-seasoning.jpg",
"variants": [
"thumbnail",
"medium",
"large"
],
"originalName": "chicken-seasoning-step.jpg"
},
{
"_id": "507f1f77bcf86cd799439021",
"path": "https://cdn.example.com/cooking-steps/step2-grilling.jpg"
}
],
"calories": 350,
"cookingTime": 30,
"difficultyLevel": "medium",
"recipeType": "dinner",
"ingredients": {
"en": "2 chicken breasts, 1 bell pepper, 1 zucchini, olive oil, herbs",
"ar": "2 قطعة صدر دجاج، 1 فلفل رومي، 1 كوسة، زيت زيتون، أعشاب"
},
"productIds": [
"6830cdcc2c67ec61cbbeab46"
],
"images": [
{
"_id": "507f1f77bcf86cd799439022",
"path": "https://cdn.example.com/recipes/grilled-chicken-main.jpg",
"variants": [
"thumbnail",
"medium",
"large",
"hero"
],
"originalName": "grilled-chicken-final-dish.jpg"
}
]
}'
Response Response Example
{}
Request
Path Params
id
string
required
Example:
683351bb39615d093e047ea6
Header Params
x-access-token
string
required
Example:
{{admin-token}}
x-client
string
required
Example:
{{client}}
accept-language
string
required
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-06-25 11:09:49