Recipes
Add a new recipe
post/recipes/add
Request
- Base URLhttps://dummyjson.com
- URLhttps://dummyjson.com/recipes/add
- Authnone required
Query parameters
delayinteger
Artificial response delay in milliseconds (0–5000).
Request body
Example request
{
"name": "Classic Margherita Pizza",
"ingredients": [
"Pizza dough"
],
"instructions": [
"Preheat the oven to 475°F (245°C)."
],
"prepTimeMinutes": 20,
"cookTimeMinutes": 15,
"servings": 4,
"difficulty": "Easy",
"cuisine": "Italian",
"caloriesPerServing": 300,
"tags": [
"Pizza"
],
"userId": 166,
"image": "https://cdn.dummyjson.com/recipe-images/1.webp",
"rating": 4.6,
"reviewCount": 98,
"mealType": [
"Dinner"
]
}Response
Created recipe
Example response
{
"id": 1,
"name": "Classic Margherita Pizza",
"ingredients": [
"Pizza dough"
],
"instructions": [
"Preheat the oven to 475°F (245°C)."
],
"prepTimeMinutes": 20,
"cookTimeMinutes": 15,
"servings": 4,
"difficulty": "Easy",
"cuisine": "Italian",
"caloriesPerServing": 300,
"tags": [
"Pizza"
],
"userId": 166,
"image": "https://cdn.dummyjson.com/recipe-images/1.webp",
"rating": 4.6,
"reviewCount": 98,
"mealType": [
"Dinner"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.