PUT api/notifications/dataSync/{id}
send data sync notification like weight, body measurements etc to org memeber
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
object representing logged in userid |
integer |
Required |
Body Parameters
org id to send filled weight sync data.
SendDataSyncNoti| Name | Description | Type | Additional information |
|---|---|---|---|
| type |
data sync type like WeightSync |
string |
Required |
| DataSyncReqs |
list of connected coaches |
Collection of DataSyncReq |
Required |
Request Formats
application/json, text/json
Sample:
{
"type": "sample string 1",
"DataSyncReqs": [
{
"org_id": 1,
"org_branch_id": 1,
"org_member_id": 2,
"mapping_id": "sample string 3"
},
{
"org_id": 1,
"org_branch_id": 1,
"org_member_id": 2,
"mapping_id": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<SendDataSyncNoti xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg">
<DataSyncReqs>
<DataSyncReq>
<mapping_id>sample string 3</mapping_id>
<org_branch_id>1</org_branch_id>
<org_id>1</org_id>
<org_member_id>2</org_member_id>
</DataSyncReq>
<DataSyncReq>
<mapping_id>sample string 3</mapping_id>
<org_branch_id>1</org_branch_id>
<org_id>1</org_id>
<org_member_id>2</org_member_id>
</DataSyncReq>
</DataSyncReqs>
<type>sample string 1</type>
</SendDataSyncNoti>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, return Lifetrons standard response On failure, return null
Response| Name | 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>