A fitness workout record
tid
Timestamp-based ID
Properties
createdAt
string
datetime
Required
An RFC 3339 formatted timestamp.
details
union
Optional
No description available.
duration
integer
Required
Duration in seconds
minimum: 0endedAt
string
datetime
Optional
An RFC 3339 formatted timestamp.
milestones
array
of
ref
#milestone
Optional
Progress milestones for linear workouts
notes
string
Optional
No description available.
maxLength: 2048 bytesplanUri
string
at-uri
Optional
Reference to the workoutPlan used, if any
startedAt
string
datetime
Required
An RFC 3339 formatted timestamp.
status
string
Optional
Whether the workout is in progress or finished. Omitted for legacy workouts (treat as completed).
maxLength: 64 bytesactive, completedtitle
string
Required
No description available.
maxLength: 256 bytestype
string
Required
No description available.
maxLength: 64 bytesrunning, cycling, swimming, walking, weightlifting, bodyweight, yoga, hiit, sports, stretching, hikingvisibility
ref
#visibilitySettings
Optional
No description available.
View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"type",
"title",
"startedAt",
"duration",
"createdAt"
],
"properties": {
"type": {
"type": "string",
"maxLength": 64,
"knownValues": [
"running",
"cycling",
"swimming",
"walking",
"weightlifting",
"bodyweight",
"yoga",
"hiit",
"sports",
"stretching",
"hiking"
]
},
"notes": {
"type": "string",
"maxLength": 2048
},
"title": {
"type": "string",
"maxLength": 256
},
"status": {
"type": "string",
"maxLength": 64,
"description": "Whether the workout is in progress or finished. Omitted for legacy workouts (treat as completed).",
"knownValues": [
"active",
"completed"
]
},
"details": {
"refs": [
"#cardioDetails",
"#strengthDetails",
"#flexibilityDetails",
"#hiitSportsDetails"
],
"type": "union"
},
"endedAt": {
"type": "string",
"format": "datetime"
},
"planUri": {
"type": "string",
"format": "at-uri",
"description": "Reference to the workoutPlan used, if any"
},
"duration": {
"type": "integer",
"minimum": 0,
"description": "Duration in seconds"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"startedAt": {
"type": "string",
"format": "datetime"
},
"milestones": {
"type": "array",
"items": {
"ref": "#milestone",
"type": "ref"
},
"description": "Progress milestones for linear workouts"
},
"visibility": {
"ref": "#visibilitySettings",
"type": "ref"
}
}
},
"description": "A fitness workout record"
}