POST api/user/dailyintake/update/{id}
set user daily intake like water,food etc
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
object representing logged in userid that need to set daily intake. |
integer |
Required |
Body Parameters
object representing daily intake data that need sync.
DailyIntakeReqName | Description | Type | Additional information |
---|---|---|---|
daily_intake |
daily intake properties like water,food etc |
Collection of DailyIntake |
Required |
Request Formats
application/json, text/json
Sample:
{ "daily_intake": [ { "water": 1, "food": "sample string 2", "timestamp": 3.1, "is_uploaded": 4 }, { "water": 1, "food": "sample string 2", "timestamp": 3.1, "is_uploaded": 4 } ] }
application/xml, text/xml
Sample:
<daily_intake_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg"> <daily_intake xmlns:d2p1="http://schemas.datacontract.org/2004/07/CommonClasses.user"> <d2p1:daily_intake> <d2p1:food>sample string 2</d2p1:food> <d2p1:is_uploaded>4</d2p1:is_uploaded> <d2p1:timestamp>3.1</d2p1:timestamp> <d2p1:water>1</d2p1:water> </d2p1:daily_intake> <d2p1:daily_intake> <d2p1:food>sample string 2</d2p1:food> <d2p1:is_uploaded>4</d2p1:is_uploaded> <d2p1:timestamp>3.1</d2p1:timestamp> <d2p1:water>1</d2p1:water> </d2p1:daily_intake> </daily_intake> </daily_intake_req>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, Lifetrons response codes On failure, Lifetrons response codes
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>