Skip to end of metadata
Go to start of metadata


Log body measurements using units in the unit system that corresponds to the Accept-Language header provided and get a response in the format requested.

Access Type: Read & Write

Resource URL

POST /<api-version>/user/-/body.<response-format>

api-version

The API version. Currently 1.

response-format

The response format. Currently supported response formats are json and xml for responses in JSON and XML, respectively.


In addition, we also support previous resource url for weight logging to ensure backward compatibility: POST /<api-version>/user/-/body/weight.<response-format>

Examples

POST Parameters:

All parameters except Body Fat % should be passed in the unit system that corresponds to the Accept-Language header provided. At least one optional parameter required.

bicep

optional/required

Bicep; in the format X.XX

calf

optional/required

Calf; in the format X.XX

chest

optional/required

Chest; in the format X.XX

fat

optional/required

Body Fat %; in the format X.XX

forearm

optional/required

Forearm; in the format X.XX

hips

optional/required

Hips; in the format X.XX

neck

optional/required

Neck; in the format X.XX

thigh

optional/required

Thigh; in the format X.XX

waist

optional/required

Waist; in the format X.XX

weight

optional/required

Weight; in the format X.XX

date

required

Measurement date; in the format yyyy-MM-dd

Authentication

Via token credentials. All authentication header parameters are required.

Request Headers

Accept-Language

optional

The measurement unit system to use for the POST parameters and response values.

Response

API Response in format requested: JSON or XML.

Response body format

Note: Text within <> is a descriptive place holder for a value or repeated elements.

JSON Response

Note: Text within [] is a descriptive place holder for a value or repeated elements.

XML Response


Examples

JSON Response


XML Response


  • No labels