Update an existing shared tracker configuration.
| Permission | Description |
|---|---|
shared_trackers.update | Update shared tracker |
shared_trackers.view | View shared tracker |
| Name | Type | Required | Description |
|---|---|---|---|
sharedTracker | integer | Yes | ID of the shared tracker to update |
| Name | Type | Required | Description |
|---|---|---|---|
start_date | string | No | Start date for the sharing period (YYYY-MM-DD format) or null |
end_date | string | No | End date for the sharing period (YYYY-MM-DD format) or null |
include_wakeup | boolean | No | Whether to include wakeup data |
include_weight | boolean | No | Whether to include weight data |
include_water | boolean | No | Whether to include water intake data |
include_sleep | boolean | No | Whether to include sleep data |
include_supplement | boolean | No | Whether to include supplement data |
include_meal | boolean | No | Whether to include meal data |
include_workout | boolean | No | Whether to include workout data |
notify_wakeup | boolean | No | Whether to notify the viewer about new wakeup data |
notify_weight | boolean | No | Whether to notify the viewer about new weight data |
notify_water | boolean | No | Whether to notify the viewer about new water intake data |
notify_sleep | boolean | No | Whether to notify the viewer about new sleep data |
notify_supplement | boolean | No | Whether to notify the viewer about new supplement data |
notify_meal | boolean | No | Whether to notify the viewer about new meal data |
notify_workout | boolean | No | Whether to notify the viewer about new workout data |
description | string | No | Optional description for the shared tracker (max: 2000 characters) |
Note: If both start_date and end_date are provided, end_date must be after start_date. When dates are set to null, date restrictions are removed.
Note: The viewer user can only change notify_* fields.
Note: The owner user can only change all fields EXCEPT notify_* fields.
{
"data": { /* shared tracker resource */ }
}
| Status | Error Type | Reference |
|---|---|---|
| 422 | Validation Error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |
| 404 | Not Found | Not found error |
user_id) or the viewer (viewer_user_id)user_id and viewer_user_id fields cannot be modifiedend_date validation rule only applies when both start_date and end_date are providednull removes date restrictions for the shared tracker