PUT api/diet/meals/reorder/{id}
re-order or delete meal from plan
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
logged in org member id |
integer |
Required |
Body Parameters
diet template id to re-order or delete meal
ReOrderMealReqName | Description | Type | Additional information |
---|---|---|---|
diet_id |
diet plan id from diet template |
integer |
Required |
meal_id |
meal id from diet plan |
integer |
Required |
diet_template_id |
diet template id |
integer |
Required |
meal_number |
old meal sequance number from diet plan |
integer |
Required |
is_deleted |
to delete meal from plan |
boolean |
None. |
meal_type_name |
name of meal incase add to entire plan is true. |
string |
None. |
diet_plan_ids |
list of diet plan ids to add food in multiple days |
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "diet_id": 1, "meal_id": 2, "diet_template_id": 3, "meal_number": 4, "is_deleted": true, "meal_type_name": "sample string 6", "diet_plan_ids": [ 1, 2 ] }
application/xml, text/xml
Sample:
<reorder_meal_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg.v5.diet"> <diet_id>1</diet_id> <diet_plan_ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </diet_plan_ids> <diet_template_id>3</diet_template_id> <is_deleted>true</is_deleted> <meal_id>2</meal_id> <meal_number>4</meal_number> <meal_type_name>sample string 6</meal_type_name> </reorder_meal_req>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, returns success On failure, return empty list failure reason.
ResponseName | Description | Type | Additional information |
---|---|---|---|
resp_code |
Lifetrons response code |
string |
None. |
resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "resp_code": "sample string 1", "resp_msg": "sample string 2" }
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <resp_code>sample string 1</resp_code> <resp_msg>sample string 2</resp_msg> </Response>