Update User Recipe

Endpoint allows updating user defined recipe. Updating a recipe is atomic. You need to override the whole recipe. If some fields are skipped they will be deleted from a recipe. This API available only for user access-token integration

Update User Recipe

PUT https://graph.whisk.com/v1/:recipe_id

Path Parameters

Request Body

{
  "recipe": {
    "id": "1070c26c320ce194efca97093e72517b4e7",
    "name": "Home made pasta",
    "description": "Pasta with tomato souce",
    "ingredients": [
      {
        "text": "Pappardelle pasta"
      },
      {
        "text": "5 tomatoes"
      },
      {
        "text": "3tbs of olive oil"
      }
    ],
    "saved": {
      "value": true,
      "collectionIds": [
        "cd037513c9e149a1b707e85eab1fc7f6"
      ],
      "owner": true,
      "type": "manual"
    }
  },
  "status": "success"
}

Recipe Payload

Response

RawIngredient

NormalizedIngredient

RawIngredient

RecipeIngredientAnalysis

RecipeInstruction

RecipeInstructions

ProductCategory

ImageContainer

ResponsiveImage

OriginalImage

RecipeSource

RecipeLabels

RecipeLabel

Some RecipeLabel description

RecipeDurations

RecipeConstraints

ConstraintsCollection

RecipeSaved

RecipeAuthor

Sample Request

curl -X PUT "https://graph.whisk.com/v1/1070c26c320ce194efca97093e72517b4e7" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token Access-Token>" \
  -d '{
    "payload": {
      "name": "Home made pasta",
      "description": "Pasta with tomato souce",
      "ingredients": [
        {
          "text": "Pappardelle pasta"
        },
        {
          "text": "5 tomatoes"
        },
        {
          "text": "3tbs of olive oil"
        }
      ]
    }
  }'

Last updated