At your convenience, you can make adjustments to the meal plan settings to accordingly change or adjust your meal plan.
Note: To use the Whisk Meal Plan API, you must acquire a User Token. For more information, see User Access Tokens.
The Meal Plan API provides you two endpoints that allow you to update the meal plan settings. The only difference between the two is that one of them requires a {meal_plan_id} and the other doesn't. This arrangement has been made for a future planned feature of supporting multiple meal plans for every user.
While at the moment, since Whisk only supports a single meal plan per user, the {meal_plan_id} has been kept optional for both endpoints. You can leave it blank and it would be directly derived from the user token being used for API authentication.
Update Settings
PUThttps://api.whisk.com/mealplan/v2/settings
Use this endpoint to update your meal plan settings using the body parameter as described below.
Request Body
Name
Type
Description
body
object
This parameter allows you to specify the new settings, for the meal plan. For more information, see the Request Body Object Example below.
{}
{
"error_code": "REAL_CODES_ARE_IN_ENDPOINT_DESCRIPTION",
"message": "Additional details about error are not static and can be changed"
}
{
"code": "auth.tokenNotFound"
}
This is unexpected response, something is wrong on our side, please contact: [email protected]
Note: Whisk provides its APIs on the Swagger interface for you to try it out. You can call this endpoint here.