POST api/guardians/growth/sync/{id}

Sync kids/child growth data

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

object representing logged in userid that need to sync kids growth data.

integer

Required

Body Parameters

object representing kids growth data that need sync.

GuardianGrowthReq
NameDescriptionTypeAdditional information
guardian_growth

kids/child growth data

Collection of GuardianGrowthData

Required

Request Formats

application/json, text/json

Sample:
{
  "guardian_growth": [
    {
      "log_id": 1,
      "dependent_id": "sample string 2",
      "weight": 3.0,
      "height": 4.0,
      "head_circumference": 1.0,
      "bmi": 1.0,
      "is_uploaded": 5,
      "date_of_activity": 6.1
    },
    {
      "log_id": 1,
      "dependent_id": "sample string 2",
      "weight": 3.0,
      "height": 4.0,
      "head_circumference": 1.0,
      "bmi": 1.0,
      "is_uploaded": 5,
      "date_of_activity": 6.1
    }
  ]
}

application/xml, text/xml

Sample:
<GuardianGrowthReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg">
  <guardian_growth xmlns:d2p1="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.GuardiandsAgg">
    <d2p1:guardian_growth>
      <d2p1:bmi>1</d2p1:bmi>
      <d2p1:date_of_activity>6.1</d2p1:date_of_activity>
      <d2p1:dependent_id>sample string 2</d2p1:dependent_id>
      <d2p1:head_circumference>1</d2p1:head_circumference>
      <d2p1:height>4</d2p1:height>
      <d2p1:is_uploaded>5</d2p1:is_uploaded>
      <d2p1:log_id>1</d2p1:log_id>
      <d2p1:weight>3</d2p1:weight>
    </d2p1:guardian_growth>
    <d2p1:guardian_growth>
      <d2p1:bmi>1</d2p1:bmi>
      <d2p1:date_of_activity>6.1</d2p1:date_of_activity>
      <d2p1:dependent_id>sample string 2</d2p1:dependent_id>
      <d2p1:head_circumference>1</d2p1:head_circumference>
      <d2p1:height>4</d2p1:height>
      <d2p1:is_uploaded>5</d2p1:is_uploaded>
      <d2p1:log_id>1</d2p1:log_id>
      <d2p1:weight>3</d2p1:weight>
    </d2p1:guardian_growth>
  </guardian_growth>
</GuardianGrowthReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

On success, Lifetrons response codes On failure, Lifetrons response codes

GuardianGrowthDataResp
NameDescriptionTypeAdditional information
growth

total body analysis data

Collection of GuardianGrowthData

None.

resp_code

Lifetrons response code

string

None.

resp_msg

Lifetrons response message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "growth": [
    {
      "log_id": 1,
      "dependent_id": "sample string 2",
      "weight": 3.0,
      "height": 4.0,
      "head_circumference": 1.0,
      "bmi": 1.0,
      "is_uploaded": 5,
      "date_of_activity": 6.1
    },
    {
      "log_id": 1,
      "dependent_id": "sample string 2",
      "weight": 3.0,
      "height": 4.0,
      "head_circumference": 1.0,
      "bmi": 1.0,
      "is_uploaded": 5,
      "date_of_activity": 6.1
    }
  ],
  "resp_code": "sample string 1",
  "resp_msg": "sample string 2"
}

application/xml, text/xml

Sample:
<GuardianGrowthDataResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg">
  <resp_code xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 1</resp_code>
  <resp_msg xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 2</resp_msg>
  <growth xmlns:d2p1="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.GuardiandsAgg">
    <d2p1:guardian_growth>
      <d2p1:bmi>1</d2p1:bmi>
      <d2p1:date_of_activity>6.1</d2p1:date_of_activity>
      <d2p1:dependent_id>sample string 2</d2p1:dependent_id>
      <d2p1:head_circumference>1</d2p1:head_circumference>
      <d2p1:height>4</d2p1:height>
      <d2p1:is_uploaded>5</d2p1:is_uploaded>
      <d2p1:log_id>1</d2p1:log_id>
      <d2p1:weight>3</d2p1:weight>
    </d2p1:guardian_growth>
    <d2p1:guardian_growth>
      <d2p1:bmi>1</d2p1:bmi>
      <d2p1:date_of_activity>6.1</d2p1:date_of_activity>
      <d2p1:dependent_id>sample string 2</d2p1:dependent_id>
      <d2p1:head_circumference>1</d2p1:head_circumference>
      <d2p1:height>4</d2p1:height>
      <d2p1:is_uploaded>5</d2p1:is_uploaded>
      <d2p1:log_id>1</d2p1:log_id>
      <d2p1:weight>3</d2p1:weight>
    </d2p1:guardian_growth>
  </growth>
</GuardianGrowthDataResp>