Create a Post Reply
Endpoint allows to create new Reply
Last updated
Endpoint allows to create new Reply
Last updated
POST
https://api.whisk.com/v2/posts/{post_id}/replies
Method allows to create a reply for post. Reply will be added to Post.
If post is recipe_with_rating
then reply will appear in review.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"reply": {
"id": "string",
"text": {
"text": "string"
},
"attachments": {
"images": [
{
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
}
],
"recipes": [
{
"id": "string",
"name": "string",
"description": "string",
"ingredients": [
{
"text": "string",
"group": "string",
"linked_products": [
{
"id": "string",
"name": "string",
"images": [
{
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
}
],
"description": "string",
"url": "string",
"price": {
"rrp": {
"currency_code": "string",
"cents": "string"
}
},
"gtin": "string",
"brand": {
"raw_name": "string"
}
}
],
"id": "string"
}
],
"instructions": {
"steps": [
{
"text": "string",
"images": [
{
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
}
],
"group": "string",
"intents": [
{
"name": "string",
"options": [
{
"key": "string",
"value": 0,
"unit": "string"
}
]
}
],
"instruction_intents": {
"intents": [
{
"attributes": [
{
"duration": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
},
"temperature": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
},
"gas": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
},
"heat": {
"value": "LEVEL_INVALID",
"unit": "UNIT_INVALID"
},
"power": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
},
"weight": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
},
"speed": {
"value": "LEVEL_INVALID",
"unit": "UNIT_INVALID"
},
"temperature_level": {
"value": "LEVEL_INVALID",
"unit": "UNIT_INVALID"
},
"water_purifier_volume": {
"value": "VALUE_INVALID",
"unit": "UNIT_INVALID"
},
"amount": {
"value": {
"range_value": {
"from": 0,
"to": 0
},
"plain_value": 0
},
"unit": "UNIT_INVALID"
}
}
],
"equipment_action": {
"oven": {
"mode": "MODE_INVALID"
},
"air_fryer": {
"mode": "MODE_INVALID"
},
"cooktop": {
"mode": "MODE_INVALID"
},
"microwave": {
"mode": "MODE_INVALID"
},
"grill": {
"mode": "MODE_INVALID"
},
"slow_cooker": {
"mode": "MODE_INVALID"
},
"pressure_cooker": {
"mode": "MODE_INVALID"
},
"food_processor": {
"mode": "MODE_INVALID"
},
"blender": {
"mode": "MODE_INVALID"
},
"mixer": {
"mode": "MODE_INVALID"
},
"frying_pan": {},
"whisk": {},
"pot": {},
"baking_sheet": {},
"baking_dish": {},
"foil": {},
"fork": {},
"knife": {},
"glass": {},
"plastic_wrap": {},
"spatula": {},
"parchment_paper": {},
"toothpick": {},
"thermometer": {},
"skewer": {},
"oven_bag": {},
"ladle": {},
"garlic_press": {},
"rolling_pin": {},
"measuring_cup": {},
"tongs": {},
"strainer": {},
"shaker": {},
"baking_rack": {},
"bowl": {},
"bundt_pan": {},
"cake_pan": {},
"casserole_dish": {},
"cast_iron_pot": {},
"cast_iron_skillet": {},
"colander": {},
"cooking_brush": {},
"cutting_board": {},
"deep_fryer": {
"mode": "MODE_INVALID"
},
"donut_pan": {},
"double_boiler": {},
"dutch_oven": {},
"freezer": {
"mode": "MODE_INVALID"
},
"fridge": {
"mode": "MODE_INVALID"
},
"grain_mill": {},
"griddle": {},
"ice_cream_maker": {
"mode": "MODE_INVALID"
},
"instant_pot": {
"mode": "MODE_INVALID"
},
"kitchen_towel": {},
"lid": {},
"loaf_pan": {},
"mandoline": {},
"mason_jar": {},
"meat_pounder": {},
"melon_baller": {},
"microwave_bowl": {},
"muffin_pan": {},
"oven_safe_bowl": {},
"oven_safe_skillet": {},
"pan": {},
"paper_towel": {},
"peeler": {},
"plate": {},
"platter": {},
"potato_masher": {},
"ramekin": {},
"sauce_pan": {},
"saute_pan": {},
"sieve": {},
"skillet": {},
"slotted_spoon": {},
"slow_cooker_liner": {},
"spoon": {},
"spring_pan": {},
"tray": {},
"waffle_iron": {
"mode": "MODE_INVALID"
},
"water_purifier": {
"mode": "MODE_INVALID"
},
"wok": {},
"wooden_spoon": {},
"zip_top_bag": {}
}
}
]
},
"cooking_intents": {
"intents": [
{
"device": {
"name": {
"name": "string",
"display_name": "string"
},
"image_url": "string"
},
"mode": {
"name": "string",
"display_name": "string"
},
"attributes": [
{
"type": "COOKING_INTENT_ATTRIBUTE_TYPE_INVALID",
"value_type": "COOKING_INTENT_ATTRIBUTE_VALUE_TYPE_INVALID",
"name": {
"name": "string",
"display_name": "string"
},
"value_format": "string",
"int_value": {
"value": 0,
"unit": {
"name": "string",
"display_name": "string"
}
},
"double_value": {
"value": 0,
"unit": {
"name": "string",
"display_name": "string"
}
},
"string_value": {
"value": {
"name": "string",
"display_name": "string"
},
"unit": {
"name": "string",
"display_name": "string"
}
}
}
]
}
]
},
"labels": [
{
"name": "string",
"labels": [
{
"name": "string"
}
]
}
],
"ingredient_ids": [
"string"
]
}
]
},
"images": [
{
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
}
],
"servings": 0,
"servings_scaled": 0,
"durations": {
"cook_time": 0,
"prep_time": 0,
"total_time": 0
},
"normalized_ingredients": [
{
"text": "string",
"group": "string",
"analysis": {
"product": {
"canonical_name": "string",
"original_name": "string"
},
"category": {
"canonical_name": "string"
},
"brand": {
"canonical_name": "string"
},
"quantity": 0,
"unit": "string",
"multiplier": 0,
"comment": "string",
"image_url": "string",
"alternative_measurements": [
{
"measurement_system": "MEASUREMENT_SYSTEM_INVALID",
"amount": {
"quantity": 0,
"unit": "string",
"multiplier": 0
}
}
],
"alternative_amounts": [
{
"quantity": 0,
"unit": "string",
"multiplier": 0
}
]
},
"source_text": "string",
"labels": [
{
"name": "string",
"labels": [
{
"name": "string"
}
]
}
],
"id": "string",
"raw_id": "string",
"nutrition": {
"components": [
{
"label": "string",
"code": "NUTRITION_CODE_INVALID",
"code_translated": {
"name": "string",
"display_name": "string"
},
"value": 0,
"unit": "NUTRITION_UNIT_INVALID",
"unit_translated": {
"name": "string",
"display_name": "string"
}
}
]
}
}
],
"nutrition": {
"status": "STATUS_INVALID",
"total": [
{
"label": "string",
"code": "NUTRITION_CODE_INVALID",
"code_translated": {
"name": "string",
"display_name": "string"
},
"value": 0,
"unit": "NUTRITION_UNIT_INVALID",
"unit_translated": {
"name": "string",
"display_name": "string"
}
}
],
"coverage": 0,
"labels": [
{
"name": "string",
"display_name": "string"
}
],
"health_score": {
"value": 0,
"nutrients_influence": [
{
"code": "NUTRITION_CODE_INVALID",
"code_translated": {
"name": "string",
"display_name": "string"
},
"influence": 0,
"comment": "string"
}
]
},
"glycemic_index": {
"value": 0
},
"glycemic_load": {
"value": 0
}
},
"labels": {
"meal_type": [
{
"name": "string",
"display_name": "string"
}
],
"cuisine": [
{
"name": "string",
"display_name": "string"
}
],
"category": [
{
"name": "string",
"display_name": "string"
}
],
"technique": [
{
"name": "string",
"display_name": "string"
}
],
"holiday": [
{
"name": "string",
"display_name": "string"
}
],
"seasonality": [
{
"name": "string",
"display_name": "string"
}
],
"device": [
{
"name": "string",
"display_name": "string"
}
]
},
"constraints": {
"violates": {
"diets": [
"DIET_INVALID"
],
"avoidances": [
"AVOIDANCE_INVALID"
]
}
},
"saved": {
"value": true,
"collection_ids": [
"string"
],
"owner": true,
"recipe_type": "RECIPE_TYPE_INVALID"
},
"language": "string",
"custom_labels": [
{
"name": "string",
"labels": [
{
"name": "string"
}
]
}
],
"main_ingredients": [
"string"
],
"save_count": 0,
"recipe_availability": {
"available_everywhere": {},
"banned_in_some_communities": {
"community_ids": [
"string"
]
},
"banned_in_all_communities": {},
"banned_everywhere": {},
"private_tweak": {}
},
"content_policy_violation": {
"violated": true,
"text_status": "MODERATION_STATUS_INVALID",
"image_status": "MODERATION_STATUS_INVALID",
"ingredients_status": "MODERATION_STATUS_INVALID"
},
"source": {
"name": "string",
"display_name": "string",
"source_recipe_url": "string",
"image": {
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
},
"license": "LICENCE_INVALID"
},
"creator": {
"id": "string",
"first_name": "string",
"last_name": "string",
"username": "string",
"picture": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"relation": {
"is_following": true,
"is_followed_by": true,
"is_me": true
}
},
"author": {
"name": "string",
"image": {
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
},
"url": "string"
},
"recipe_author": {
"publisher": {
"name": "string",
"display_name": "string",
"source_recipe_url": "string",
"image": {
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
}
},
"user": {
"id": "string",
"first_name": "string",
"last_name": "string",
"username": "string",
"picture": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"relation": {
"is_following": true,
"is_followed_by": true,
"is_me": true
}
}
},
"parent": {
"recipe": {
"id": "string",
"name": "string",
"images": [
{
"responsive": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"url": "string"
}
],
"source": {
"name": "string",
"display_name": "string",
"source_recipe_url": "string"
}
}
},
"permissions": {
"is_instructions_enabled": true,
"is_guided_cooking_enabled": true
},
"videos": [
{
"content_url": "string",
"embed_url": "string",
"thumbnail": "string"
}
],
"recipe_videos": [
{
"youtube_video": {
"original_link": "string",
"normalized_link": "string",
"video_id": "string"
},
"tiktok_video": {
"original_link": "string",
"normalized_link": "string",
"video_id": "string"
}
}
],
"reviews": {
"stats": {
"like_count": 0,
"dislike_count": 0
},
"tags": {
"tags": [
{
"name": "string",
"display_name": "string"
}
]
}
}
}
]
},
"user": {
"id": "string",
"first_name": "string",
"last_name": "string",
"username": "string",
"picture": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"relation": {
"is_following": true,
"is_followed_by": true,
"is_me": true
}
},
"reactions": {
"count": 0,
"my_like": true,
"sample": [
{
"id": "string",
"first_name": "string",
"last_name": "string",
"username": "string",
"picture": {
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
},
"relation": {
"is_following": true,
"is_followed_by": true,
"is_me": true
}
}
]
},
"time_since_added": 0
}
}
{
"code": "auth.tokenNotFound"
}
This is unexpected response, something is wrong on our side, please contact: [email protected]
{
"payload": {
"text": {
"text": "string"
},
"attachments": {
"images": [
{
"url": "string",
"width": 0,
"height": 0,
"selection": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
}
],
"recipe_ids": [
"string"
]
}
}
}
curl -X POST "https://api.b2c.whisk-dev.com/v2/posts/645208cfe06343b89db820b49880f2a2/replies" -H "accept: application/json" -H "Authorization: Bearer " -H "Content-Type: application/json" -d "{ "payload": { "text": { "text": "you may like this one" }, "attachments": { "images": [ ], "recipe_ids": [ "10107c5f6d69c892f25ecb6a366a82c2e515eab3050" ] } }}"
{
"reply": {
"id": "32c12ce2a50c4988a2891e2debbf9a04",
"text": {
"text": "you may like this one"
},
"attachments": {
"recipes": [
{
"id": "10107c5f6d69c892f25ecb6a366a82c2e515eab3050",
"name": "Chocolate Babka",
"description": "Baking a chocolate babka is no casual undertaking. The Eastern European yeast-risen coffee cake has 14 steps and takes all day to make. But the results are worth every sugarcoated second – with a moist, deeply flavored brioche-like cake wrapped around a dark fudge filling, then topped with cocoa streusel crumbs. If you want to save yourself a little work and love Nutella, you can substitute 1 1/2 cup (420 grams) of it for the homemade fudge filling. Also note that you can make this over a few days instead of all at once. Babka freezes well for up to 3 months, so if you need only one loaf now, freeze the other for later.",
"ingredients": [
{
"text": "1/2 cup/118 milliliters whole milk",
"id": "0"
},
{
"text": "1 package (1/4 ounce/7 grams) active dry yeast",
"id": "1"
},
{
"text": "1/3 cup/67 grams granulated sugar, plus a pinch",
"id": "2"
},
{
"text": "4 1/4 cups/531 grams all-purpose flour, more as needed",
"id": "3"
},
{
"text": "1 1/2 teaspoons fine sea salt",
"id": "4"
},
{
"text": "1 teaspoon vanilla extract",
"id": "5"
},
{
"text": "1 teaspoon grated lemon zest (optional)",
"id": "6"
},
{
"text": "1/2 teaspoon freshly grated nutmeg",
"id": "7"
},
{
"text": "4 large eggs, at room temperature, lightly beaten",
"id": "8"
},
{
"text": "10 tablespoons/140 grams unsalted butter, at room temperature, plus more for greasing bowls and pans",
"id": "9"
},
{
"text": "1/2 cup/100 grams granulated sugar",
"id": "10"
},
{
"text": "3/4 cup/177 milliliters heavy cream or half-and-half",
"id": "11"
},
{
"text": "Pinch kosher salt",
"id": "12"
},
{
"text": "6 ounces/170 grams extra bittersweet chocolate, preferably between 66 and 74 percent cocoa, coarsely chopped",
"id": "13"
},
{
"text": "8 tablespoons/112 grams/1 stick unsalted butter, diced, at room temperature",
"id": "14"
},
{
"text": "2 teaspoons/10 milliliters vanilla extract",
"id": "15"
},
{
"text": "1/2 cup/60 grams all-purpose flour",
"id": "16"
},
{
"text": "3 tablespoons/45 grams granulated sugar",
"id": "17"
},
{
"text": "1 1/2 tablespoons/11 grams cocoa powder",
"id": "18"
},
{
"text": "1/2 teaspoon kosher salt",
"id": "19"
},
{
"text": "4 1/2 tablespoons/64 grams unsalted butter, melted",
"id": "20"
},
{
"text": "1/3 cup/60 grams mini semisweet chocolate chips",
"id": "21"
},
{
"text": "2/3 cup/135 grams granulated sugar",
"id": "22"
}
],
"images": [
{
"responsive": {
"url": "https://whisk-res.cloudinary.com/image/upload/v1581677549/recipe/232549248963eac79dafe3e4460c3e48.jpg"
},
"url": "https://whisk-res.cloudinary.com/image/upload/v1581677549/recipe/232549248963eac79dafe3e4460c3e48.jpg"
}
],
"servings": 2,
"durations": {
"total_time": 1650
},
"labels": {
"meal_type": [
{
"name": "desserts",
"display_name": "Desserts"
},
{
"name": "snacks",
"display_name": "Snacks"
},
{
"name": "brunch",
"display_name": "Brunch"
}
],
"cuisine": [
{
"name": "european",
"display_name": "European"
},
{
"name": "eastern-european",
"display_name": "Eastern European"
}
],
"category": [
{
"name": "appetizers-and-snacks",
"display_name": "AppetizersAndSnacks"
},
{
"name": "breakfast-and-brunch",
"display_name": "BreakfastAndBrunch"
},
{
"name": "desserts",
"display_name": "Desserts"
}
],
"technique": [
{
"name": "baking",
"display_name": "Baking"
},
{
"name": "simmering",
"display_name": "Simmering"
},
{
"name": "chilling",
"display_name": "Chilling"
},
{
"name": "stirring",
"display_name": "Stirring"
},
{
"name": "microwaving",
"display_name": "Microwaving"
}
],
"device": [
{
"name": "oven",
"display_name": "Oven"
}
]
},
"constraints": {
"violates": {
"diets": [
"DIET_VEGAN",
"DIET_DAIRY_FREE",
"DIET_OVO_VEGETARIAN",
"DIET_LACTO_VEGETARIAN",
"DIET_GLUTEN_FREE",
"DIET_KETOGENIC",
"DIET_PALEO"
],
"avoidances": [
"AVOIDANCE_GLUTEN",
"AVOIDANCE_WHEAT",
"AVOIDANCE_EGG",
"AVOIDANCE_YEAST",
"AVOIDANCE_MILK",
"AVOIDANCE_LACTOSE",
"AVOIDANCE_ALCOHOL",
"AVOIDANCE_SOYBEAN"
]
}
},
"saved": {
"recipe_type": "RECIPE_TYPE_IMPORTED"
},
"language": "en",
"main_ingredients": [
"chocolate"
],
"save_count": 41,
"content_policy_violation": {
"text_status": "MODERATION_STATUS_SUCCESS",
"image_status": "MODERATION_STATUS_SUCCESS",
"ingredients_status": "MODERATION_STATUS_SUCCESS"
},
"source": {
"name": "cooking.nytimes.com",
"display_name": "cooking.nytimes.com",
"source_recipe_url": "https://cooking.nytimes.com/recipes/1018045-chocolate-babka?utm_source=whisk&utm_medium=whisk&utm_campaign=chocolate_babka",
"image": {
"responsive": {
"url": "https://whisk-res.cloudinary.com/image/upload/v1612277917/favicon/e8e667cc88b626ee0989e6abbd1a06e4.jpg",
"width": 48,
"height": 48
},
"url": "https://whisk-res.cloudinary.com/image/upload/v1612277917/favicon/e8e667cc88b626ee0989e6abbd1a06e4.jpg"
},
"license": "LICENCE_FAIRUSE"
},
"recipe_author": {
"publisher": {
"name": "cooking.nytimes.com",
"display_name": "cooking.nytimes.com",
"source_recipe_url": "https://cooking.nytimes.com/recipes/1018045-chocolate-babka?utm_source=whisk&utm_medium=whisk&utm_campaign=chocolate_babka",
"image": {
"responsive": {
"url": "https://whisk-res.cloudinary.com/image/upload/v1612277917/favicon/e8e667cc88b626ee0989e6abbd1a06e4.jpg",
"width": 48,
"height": 48
},
"url": "https://whisk-res.cloudinary.com/image/upload/v1612277917/favicon/e8e667cc88b626ee0989e6abbd1a06e4.jpg"
}
}
},
"permissions": {},
"videos": [
{
"content_url": "http://video1.nytimes.com/video/2016/04/01/38619_1_clark-babka_wg_240p.mp4"
}
]
}
]
},
"user": {
"id": "102e02d82c97dd447b38405fd2801c8dbe1",
"first_name": "Julia",
"last_name": "Shebeko",
"picture": {
"url": "https://whisk-res.cloudinary.com/image/upload/v1561315696/avatar/7efe7991dffe139896e29300bded2a46.jpg"
},
"relation": {
"is_me": true
}
},
"reactions": {}
}
}
Authorization*
String
User Access token to authorize the API usage. For more information, see Authentication
recipe_ids
Array
An array if recipe ids could be attached to reply.
image
Object
Image object. Contain list of parameters related to image.
text
String
Text attached to reply.
text
Object
An object for text attribute
attachments
Object
An object for attaching content to a reply. There could be an image or a recipe.