dambel

دمبل

shevron
ورود | ثبت نام

API Docs / tracker / shares / shared tracker resource



Shared Tracker Resource

The shared tracker resource represents a shared tracker configuration between two users.


Resource Structure

FieldTypeDescription
idintegerUnique identifier for the shared tracker
user_idintegerID of the user who is sharing their tracker data
viewer_user_idintegerID of the user who can view the shared tracker data
start_datestringStart date for the sharing period (YYYY-MM-DD format)
end_datestringEnd date for the sharing period (YYYY-MM-DD format)
include_wakeupbooleanWhether wakeup data is included in the shared tracker
include_weightbooleanWhether weight data is included in the shared tracker
include_waterbooleanWhether water intake data is included in the shared tracker
include_sleepbooleanWhether sleep data is included in the shared tracker
include_supplementbooleanWhether supplement data is included in the shared tracker
include_mealbooleanWhether meal data is included in the shared tracker
include_workoutbooleanWhether workout data is included in the shared tracker
notify_wakeupbooleanWhether to notify the viewer about new wakeup data
notify_weightbooleanWhether to notify the viewer about new weight data
notify_waterbooleanWhether to notify the viewer about new water intake data
notify_sleepbooleanWhether to notify the viewer about new sleep data
notify_supplementbooleanWhether to notify the viewer about new supplement data
notify_mealbooleanWhether to notify the viewer about new meal data
notify_workoutbooleanWhether to notify the viewer about new workout data
descriptionstringOptional description for the shared tracker
created_atstringTimestamp when the shared tracker was created
updated_atstringTimestamp when the shared tracker was last updated

Example Response

{
  "data": {
    "id": 1,
    "user_id": 123,
    "viewer_user_id": 456,
    "start_date": "2024-01-01",
    "end_date": "2024-01-31",
    "include_wakeup": true,
    "include_weight": true,
    "include_water": true,
    "include_sleep": true,
    "include_supplement": false,
    "include_meal": true,
    "include_workout": true,
    "notify_wakeup": false,
    "notify_weight": false,
    "notify_water": false,
    "notify_sleep": false,
    "notify_supplement": false,
    "notify_meal": false,
    "notify_workout": false,
    "description": "January fitness tracking data",
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-01T00:00:00.000000Z"
  }
}

Related Resources

footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube