User Preferences
Reading user preferences
You may read the user’s preferences by using this API. This is for informational purposes only; the use of any of the other API’s in this documentation does not require you to look up these values.
GEThttps://api.fitnesssyncer.com/api/users/preferences
Scopeprofile_read
Response 200User Preferences
Example request
curl -H "Authorization: Bearer AccessToken" "https://api.fitnesssyncer.com/api/users/preferences"Request Parameters
None
Response
The response will be a 200 with a JSON body with the User Preferences.
Example JSON
{
"heightInMeters": 0,
"canemail": false,
"autosync": true,
"bmr": 0,
"timezone": "UTC",
"weightMetric": false,
"heartRateAge": 30,
"internationaltime": false,
"timezoneDisplayName": "Coordinated Universal Time",
"waterML": false,
"temperatureCelsius": false,
"heartRateMax": 187,
"pro": true,
"displayname": "",
"heartRateLevel4": 149,
"heartRateLevel5": 168,
"heartRateLevel2": 112,
"distanceMetric": false,
"privateActivities": false,
"heartRateLevel3": 130,
"alcoholGrams": false,
"heartRateLevel1": 74,
"weekStartsOnMonday": false,
"bloodChemistryMetric": false
}Updating user preferences
You may update the user’s preferences by using this API.
POSThttps://api.fitnesssyncer.com/api/users/preferences
Scopeprofile_write
Request bodyUser Preferences
Response 200Object
Fields
| JSON Item | Data Type | Description |
|---|---|---|
| updated | String | Status indicating it was updated |
Request Parameters
The Request Body will be a JSON object with the changes of the User Preferences.
Response
The response will be a 200 with a JSON body with an updated field as follows:
{"updated": "OK"}Types
User Preferences
| JSON Item | Data Type | Description |
|---|---|---|
| autosync | Boolean | If this is a Pro user, this will denote whether Auto-Sync is enabled or not. |
| bmr | Integer | Basal Metabolic Rate. If unknown, this will be 0. |
| birthdate | Long | Birth date as an epoch of the user. This will be 0 if unknown. |
| age | Integer | Age of the user. This will be 0 if unknown. Read-only. |
| canemail | Boolean | True if FitnessSyncer can periodically send e-mails to this user. |
| privateActivities | Boolean | Indicates whether the user prefers private activities for destination synchronizations? |
| heightInMeters | Double | How tall is the user in meters? If unknown, this will be 0. |
| distanceMetric | Boolean | Indicates whether the user prefers metric units for distance and height. |
| nutritionMetric | Boolean | Indicates whether the user prefers metric units for nutrition. |
| weightMetric | Boolean | Indicates whether the user prefers metric units for weight. |
| bloodChemistryMetric | Boolean | Indicates whether the user prefers mmol/L rather than mg/dL for blood chemistry, which covers glucose, cholesterol and triglycerides alike. Named glucoseMetric before API version 2026-10-25, and a client on an earlier version both receives and sends that name instead; exactly one of the two names is ever present. |
| temperatureCelsius | Boolean | Indicates whether the user prefers metric units for temperature. |
| waterML | Boolean | Indicates whether the user prefers metric units for water consumption. |
| alcoholGrams | Boolean | Indicates whether the user prefers alcohol in grams of pure alcohol rather than in standard drinks. Alcohol is always stored in grams; this decides only how it is shown. |
| internationaltime | Boolean | Indicates whether the user prefers 24-hour time and YYYY-MM-DD dates or not. |
| weekStartsOnMonday | Boolean | Indicates whether the user prefers the week to start on Monday instead of Sunday. |
| locale | String | Locale of the user. |
| emailLocale | String | Locale for e-mail, notifications, and other asynchronous communication to the user. |
| numericLocale | String | User’s number locale, currently en or fr. |
| bodyshape | String | Body Shape of the user. Must be one of: Unspecified, Rectangle, Triangle, Trapezoid, Oval, HourGlass, Round, InvertedTriangle |
| sex | String | Gender of the user. Must be one of: Unspecified, Female, Male |
| timezone | String | User’s time zone. Consider using the timezone Descriptions API to get the supported timezones. |
| timezoneDisplayName | String | Time Zone display Name. Read-only. |
| displayname | String | User’s Display Name. |
| heartRateLevel1 | Integer | User’s minimum heart rate at level 1 or the system default. |
| heartRateLevel2 | Integer | User’s minimum heart rate at level 2 or the system default. |
| heartRateLevel3 | Integer | User’s minimum heart rate at level 3 or the system default. |
| heartRateLevel4 | Integer | User’s minimum heart rate at level 4 or the system default. |
| heartRateLevel5 | Integer | User’s minimum heart rate at level 5 or the system default. |
| heartRateAge | Integer | User’s age last used to calculate the heart rate. |
| heartRateMax | Integer | User’s maximum heart rate or the system default. |
| pro | Boolean | True if the user is a FitnessSyncer Pro subscriber Read-only. |
| beta | Boolean | True if the user has any boolean flags. Read-only. |
| coach | Boolean | True if the user has a roster of clients or study participants to manage. Absent otherwise. Read-only. |
| hasCoach | Boolean | True if the user is an active client of at least one coach. Absent otherwise. Read-only. |
| organizationStaff | Boolean | True if the user is on the staff of an organization (its Owner, an Administrator, a group lead or a coach), whose settings are managed on FitnessSyncer.com. False otherwise; a server too old to know of organizations leaves it out. Read-only. |
| coachingStopped | Boolean | True if the user holds the Coach role, not as its Owner, in an organization whose coaching has stopped, because the Owner’s coach plan lapsed beyond the renewal grace or the organization’s subscription is not live or bills no seat for them, and the user has no coach plan of their own. False otherwise; a server too old to know of it leaves it out. Read-only. |
| coachingStoppedOrganization | String | The name of the organization whose coaching has stopped, whose Owner the user should contact. Present only with coachingStopped. Read-only. |
| powerZones | Map of String to Power Zones | List of Power Zone Definitions based on Sport. |
| sleepRatio | Double | Sleep Ratio for Sleep Debt Calculation. Defaults to 0.5 which represents 1:2 ratio (8 hours of sleep to 16 hours awake) |
| graphSleepByWakeTime | Boolean | How should the system graph sleep? If true, this will graph it based on the awake time. Otherwise, this will be graphed based on bedtime. |
| glucoseLow | Double | The lower range of the Glucose Range in mmol/L for graphing. |
| glucoseHigh | Double | The higher range of the Glucose Range in mmol/L for graphing. |
| glucosePercent | Integer | From 0-100%, what is your goal for being in the Glucose Range from Low to High? |
| bandsBasedOnGlucoseRange | Boolean | When true, reference bands and KPI shading are derived from your own Glucose Range rather than the standard clinical thresholds. Useful if you are managing diagnosed diabetes to a target agreed with your clinician. The Estimated A1C always uses the standard thresholds. |
| hiddenReports | Array of String | List of system report ids hidden from the quick-switch tab bar. |
| hiddenNotebookTypes | Array of String | List of TaskTypes hidden from the FitnessSyncer Notebook editor’s tab bar. Must be one of Activity, Allergy, Weight, BloodPressure, BloodPanel, Cholesterol, Condition, CycleTracking, ECG, Glucose, Medication, Nutrition, Oxygen, Sleep, Temperature. |
Power Zones
| JSON Item | Data Type | Description |
|---|---|---|
| base | Integer | Base Power Zone |
| maxZone1 | Integer | Maximum value for Zone 1 |
| maxZone2 | Integer | Maximum value for Zone 2 |
| maxZone3 | Integer | Maximum value for Zone 3 |
| maxZone4 | Integer | Maximum value for Zone 4 |
| maxZone5 | Integer | Maximum value for Zone 5 |
| maxZone6 | Integer | Maximum value for Zone 6 |