POST api/group/sync/progress/{id}
sync all challenge/groups progress data to servere
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
object representing logged in userid that need to sync data. |
integer |
Required |
Body Parameters
object representing to sync progress data.
GroupProgressReqName | Description | Type | Additional information |
---|---|---|---|
progress_data |
activities data to sync with server |
Collection of GroupProgressData |
Required |
Request Formats
application/json, text/json
Sample:
{ "progress_data": [ { "log_id": 1, "group_id": 2, "date_of_activity": 3.1, "water_per": 1.0, "weight_per": 1.0, "steps_per": 1.0, "calories_per": 1.0, "distance_per": 1.0, "mobile_pk_id": "sample string 4" }, { "log_id": 1, "group_id": 2, "date_of_activity": 3.1, "water_per": 1.0, "weight_per": 1.0, "steps_per": 1.0, "calories_per": 1.0, "distance_per": 1.0, "mobile_pk_id": "sample string 4" } ] }
application/xml, text/xml
Sample:
<group_prog_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg.v5"> <progress_data xmlns:d2p1="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.TrustedOrgAgg"> <d2p1:group_progress_data> <d2p1:calories_per>1</d2p1:calories_per> <d2p1:date_of_activity>3.1</d2p1:date_of_activity> <d2p1:distance_per>1</d2p1:distance_per> <d2p1:group_id>2</d2p1:group_id> <d2p1:log_id>1</d2p1:log_id> <d2p1:mobile_pk_id>sample string 4</d2p1:mobile_pk_id> <d2p1:steps_per>1</d2p1:steps_per> <d2p1:water_per>1</d2p1:water_per> <d2p1:weight_per>1</d2p1:weight_per> </d2p1:group_progress_data> <d2p1:group_progress_data> <d2p1:calories_per>1</d2p1:calories_per> <d2p1:date_of_activity>3.1</d2p1:date_of_activity> <d2p1:distance_per>1</d2p1:distance_per> <d2p1:group_id>2</d2p1:group_id> <d2p1:log_id>1</d2p1:log_id> <d2p1:mobile_pk_id>sample string 4</d2p1:mobile_pk_id> <d2p1:steps_per>1</d2p1:steps_per> <d2p1:water_per>1</d2p1:water_per> <d2p1:weight_per>1</d2p1:weight_per> </d2p1:group_progress_data> </progress_data> </group_prog_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>