Inputs
BodyweightInput
Section titled “BodyweightInput”A body-weight reading.
| Argument | Type | Description |
|---|---|---|
date |
Date! |
Date. |
weight |
Float! |
Weight, kg (20–400). |
CreateApiKeyInput
Section titled “CreateApiKeyInput”A new personal API key.
| Argument | Type | Description |
|---|---|---|
access |
ApiKeyAccess! |
Read only, or read and write. |
expiresInDays |
Int |
Days until it stops working, 1–366; omit for a key that never expires. |
name |
String! |
What the key is for, 1–60 characters. |
CustomExerciseInput
Section titled “CustomExerciseInput”A custom exercise. A name and a body part are enough.
| Argument | Type | Description |
|---|---|---|
bodyPart |
String! |
Body part. |
description |
String |
Setup and cues, up to 2000 characters. |
equipment |
String |
Equipment. |
id |
ID! |
Client id prefixed c_. |
name |
String! |
Name, 1–80 characters. |
EquipmentProfileInput
Section titled “EquipmentProfileInput”A place you train at and the equipment it has.
| Argument | Type | Description |
|---|---|---|
equipment |
[String!]! |
Equipment keys, as in the exercise library. |
id |
ID! |
Client id. |
name |
String! |
Name, 1–40 characters (“Home”, “Gym”). |
ExerciseSettingInput
Section titled “ExerciseSettingInput”Per-exercise settings; weights in kg.
| Argument | Type | Description |
|---|---|---|
addedLoad |
Float |
Added load (dip belt, vest). |
bodyweight |
Boolean |
Treat as bodyweight. |
exerciseId |
ID! |
Exercise. |
notes |
String |
Notes. |
pair |
Boolean |
A dumbbell or a kettlebell in each hand: the weight logged is one of the two, volume counts both. |
repCeiling |
Int |
Rep ceiling for bodyweight progression. |
step |
Float |
Load step. |
unilateral |
Boolean |
Log reps per side. |
workingWeight |
Float |
Confirmed working weight. |
HeartbeatInput
Section titled “HeartbeatInput”Live workout progress for the admin “training now” view.
| Argument | Type | Description |
|---|---|---|
exerciseId |
ID |
Current exercise. |
setsDone |
Int! |
Sets done. |
setsTotal |
Int! |
Sets planned. |
workoutId |
ID! |
Workout. |
workoutName |
String! |
Workout name. |
ImportHistoryInput
Section titled “ImportHistoryInput”History parsed on the client from another app’s export.
| Argument | Type | Description |
|---|---|---|
bodyweight |
[BodyweightInput!]! |
Body-weight readings. |
customExercises |
[CustomExerciseInput!]! |
Custom exercises they use. |
workouts |
[WorkoutInput!]! |
Workouts (max 500 per call). |
NotificationInput
Section titled “NotificationInput”A notification to send a few seconds from now, even with the app closed.
| Argument | Type | Description |
|---|---|---|
body |
String! |
Text (already translated). |
kind |
NotificationKind! |
Why. |
seconds |
Int! |
Seconds from now (1–3600). |
title |
String! |
Title (already translated). |
PushSubscriptionInput
Section titled “PushSubscriptionInput”A browser push subscription.
| Argument | Type | Description |
|---|---|---|
auth |
String! |
Auth secret. |
endpoint |
String! |
Push service URL. |
p256dh |
String! |
Client public key. |
RoutineInput
Section titled “RoutineInput”A whole routine; saving replaces its items.
| Argument | Type | Description |
|---|---|---|
deload |
Boolean |
Planned deload routine. |
folderId |
ID |
Its folder (viewer.folders); null moves it to My routines, leaving it out keeps its folder. |
icon |
String! |
Icon key. |
id |
ID! |
Client id. |
items |
[RoutineItemInput!]! |
Exercises in order (max 100). |
name |
String! |
Name. |
progression |
ProgressionRule! |
Default rule. |
RoutineItemInput
Section titled “RoutineItemInput”One exercise in a routine.
| Argument | Type | Description |
|---|---|---|
bursts |
Int |
Rest-pause bursts after the last work set, 0–5. |
drops |
Int |
Drop sets after the last work set, 0–5. |
durationSec |
Int |
Target duration. |
exerciseId |
ID! |
Exercise. |
id |
ID! |
Client key. |
mode |
SetMode! |
How it is logged. |
note |
String |
Tip shown above the sets in a workout, up to 140 characters; empty removes it. |
progression |
ProgressionRule |
Rule override. |
reps |
Int! |
Reps, 0–500. |
repsMax |
Int |
Range top. |
restSec |
Int |
Rest override. |
sets |
Int! |
Sets, 1–20. |
supersetGroup |
String |
Superset group. |
warmups |
Int |
Warm-up sets, 0–5. |
weight |
Float |
Starting weight, kg. |
why |
String |
Why the exercise has its sets, reps and rest, up to 280 characters. Leave it out to keep what is stored while those numbers stay (it is removed when they change); null or empty removes it. |
SettingsInput
Section titled “SettingsInput”Fields to change; omitted fields stay as they are.
| Argument | Type | Description |
|---|---|---|
aboutAskedAt |
Float |
When “About you” was asked (epoch ms). |
aboutPutOff |
Int |
How many times “About you” was put off, 0–2. |
accent |
String |
Accent colour key. |
activeProfile |
ID |
Profile the library filters to; null shows everything. |
agentRemember |
Boolean |
The agent may save lasting facts the user tells it. |
bars |
JSON |
Bar weights in kg by bar type; null restores the standard bars. |
birthYear |
Int |
Year of birth, 1900 to ten years ago; null clears it. |
bodyFigure |
BodyFigure |
Muscle map figure. |
coachAvatar |
CoachAvatar |
Pick the coach’s character; null goes back to the account’s own. custom needs a name. |
customCoachName |
String |
Name of your own coach, 1–24 characters; null deletes it, with its style and photo. |
customCoachStyle |
String |
How your own coach talks, up to 200 characters, tone only; null or empty for no preference. |
demoMinimized |
Boolean |
Minimise exercise animation during workouts. |
effortScale |
EffortSetting |
Effort column. |
equipmentProfiles |
[EquipmentProfileInput!] |
Every equipment profile (replaces the list); null removes them all. |
heightCm |
Float |
Height in cm, 100–250; null clears it. |
homeBodyweight |
Boolean |
Show the body-weight card on Home. |
keepAwake |
Boolean |
Keep the screen awake during workouts. |
lifeStage |
LifeStage |
For a woman; null clears it. |
locale |
String |
UI language. |
plates |
[Float!] |
Plate weights owned, kg; null restores the standard set. |
reminderOn |
Boolean |
Workout-day reminder. |
reminderTime |
String |
HH:MM. |
restSec |
Int |
Default rest, 0–900 s. |
restSound |
NotificationSound |
The sound when a rest ends. |
restTimer |
Boolean |
Automatic rest timer after each set. |
sessionStart |
SessionStart |
Where planned sessions take their numbers from. |
setSound |
NotificationSound |
The sound when a timed set ends. |
sex |
Sex |
Sex for the coach; null clears it, and a sex other than female clears lifeStage. |
sound |
Boolean |
Timer sounds. |
targetWeight |
Float |
Body-weight goal in kg; null clears it. |
theme |
Theme |
Theme. |
timerFlash |
Boolean |
Flash the screen when a timer ends. |
timezone |
String |
IANA timezone. |
trackActivity |
Boolean |
The app may record what the user does in it (events an admin can read). False stops it and deletes the events kept so far. |
unit |
Unit |
Display unit. |
weekStart |
WeekStart |
First day of the week. |
workoutLayout |
WorkoutLayout |
Workout screen layout. |
TrackedEventInput
Section titled “TrackedEventInput”Something the app saw the person do that the server cannot: a name from the fixed list and a few small facts.
| Argument | Type | Description |
|---|---|---|
at |
Timestamp |
When it happened, ms since the epoch; now when missing. |
name |
String! |
session.started, screen.viewed or workout.started. |
props |
JSON |
Its facts: screen.viewed has screen (a route pattern such as /routine/:id); others take none or a few numbers and flags. |
WorkoutExerciseInput
Section titled “WorkoutExerciseInput”One exercise block.
| Argument | Type | Description |
|---|---|---|
exerciseId |
ID! |
Exercise. |
mode |
SetMode! |
How it is logged. |
note |
String |
Today’s note, up to 500 characters. |
notePinned |
Boolean |
Show the note again next time. |
sets |
[WorkoutSetInput!]! |
Sets. |
skipProgression |
Boolean |
Leave this exercise out of progression. |
supersetGroup |
String |
Superset group. |
WorkoutInput
Section titled “WorkoutInput”A whole workout; saving is idempotent by id.
| Argument | Type | Description |
|---|---|---|
bodyweight |
Float |
Body weight at the start, kg. |
date |
Date! |
Calendar date. |
exercises |
[WorkoutExerciseInput!]! |
Exercises. |
finishedAt |
Timestamp |
Finish time; omit while running. |
id |
ID! |
Client id. |
name |
String! |
Name. |
notes |
String |
Notes about the session, up to 2000 characters. |
routineId |
ID |
Routine it came from. |
skipProgression |
Boolean |
Exclude the entire session from progression. |
startedAt |
Timestamp! |
Start time. |
WorkoutSetInput
Section titled “WorkoutSetInput”One set; weights in kg.
| Argument | Type | Description |
|---|---|---|
amrap |
Boolean |
AMRAP set. |
done |
Boolean! |
Checked off. |
durationSec |
Int |
Time held or cardio duration. |
effort |
Float |
Effort rating. |
effortScale |
EffortScale |
Scale of the rating. |
kind |
SetKind |
Work (default), warm-up, drop set or rest-pause burst. |
reps |
Int |
Reps. |
repsLeft |
Int |
Left side reps (per-side logging). |
repsRight |
Int |
Right side reps (per-side logging). |
speed |
Float |
Cardio speed. |
targetDurationSec |
Int |
Target hold. |
targetReps |
Int |
Target reps. |
targetWeight |
Float |
Target weight. |
weight |
Float |
Load. |