Studio
Publish Recipe
Authorization
BearerAuth AuthorizationBearer <token>
JWT Bearer token authentication
In: header
Path Parameters
recipe_id*string
Response Body
application/json
application/json
curl -X POST "https://evh09u6ys0.execute-api.us-west-2.amazonaws.com/studio/recipes/string/publish"{
"data": {
"id": "string",
"org_id": "string",
"name": "string",
"country": "US",
"regulatory_authority": "US_FDA",
"status": "draft",
"ingredients": [
{
"original_text": "string",
"parsed_quantity": 0,
"parsed_unit": "string",
"parsed_ingredient_name": "string",
"selected_ingredient_id": "string",
"selected_ingredient_name": "string",
"metric_quantity_g": 0
}
],
"ingredient_resolutions": [
{
"converted": {
"quantity": 59,
"steps": [
{
"calculation": "0.5 cup x 236ml/cup = 118ml",
"factor": 236,
"input_quantity": 0.5,
"input_unit": "cup",
"output_quantity": 118,
"output_unit": "ml"
}
],
"unit": "g"
},
"matches": {
"candidates": [
{
"category": "Fruits and Fruit Juices",
"ingredient_id": "f_usda_ff:1105073",
"ingredient_name": "Bananas, overripe, raw",
"search_confidence": 0.95
}
],
"query_text": "flour",
"selected_match": {
"category": "Fruits and Fruit Juices",
"ingredient_id": "f_usda_ff:1105073",
"ingredient_name": "Bananas, overripe, raw",
"search_confidence": 0.95
}
},
"original_text": "1/2 cup flour",
"parsed": {
"ingredient_name": "flour",
"quantity": 0.5,
"quantity_text": "1/2",
"unit": "cup"
}
}
],
"nutrition_profile": {
"is_stale": true,
"nutrients": [
{
"id": 1003,
"bmid": "string",
"name": "Protein",
"total_amount": "string",
"unit": "g"
}
],
"total_weight_grams": "string"
},
"nutritional_analysis": {
"contribution_records": [
{
"ingredient_name": "Chicken Breast",
"quantity_g": 200,
"contribution_factor": 2,
"nutrient_id": 1003,
"nutrient_bmid": "PROTEIN",
"nutrient_name": "Protein",
"reference_per_100g": 31,
"contribution_amount": 62,
"unit": "g"
}
]
},
"created_at": "string",
"updated_at": "string",
"actions": {
"can_modify": true,
"can_publish": true,
"can_archive": true,
"can_delete": true
}
},
"meta": {
"version": "string",
"request_id": "string",
"timestamp": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}