curl -X PATCH "https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({workoutSource: 'freestyle'})
};
fetch('https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source"
payload = { "workoutSource": "freestyle" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"runId": "66f7b8b1e13c8d25f4d3d90a",
"clientId": "66f7b8b1e13c8d25f4d3d90a",
"sessionId": "66f7b8b1e13c8d25f4d3d90a",
"workoutSource": "string",
"sourceLabel": "string",
"requiresConfirmation": true,
"confirmationToken": "string",
"confirmationTokenExpiresAt": "2026-07-14T10:00:00.000Z",
"performanceCleared": true,
"runTimer": {
"timerStartedAt": "2026-07-14T10:00:00.000Z",
"timerPausedAt": "2026-07-14T10:00:00.000Z",
"timerElapsedMs": 1
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Change one participant workout source
Changes one participant’s workout source in an active group run. Send restart: true when the current participant session already has entered performance that may be cleared. Plan and template selections must contain at least one active exercise. A successful switch restarts the participant timer and starts or resumes the central run timer without resetting elapsed run time.
Requires the workout_groups:write scope. This operation maps to /app/v1/coach/workout/group/runs/:runId/participants/:clientId/workout-source and retains its Workout V2 permission, feature-flag, and resource-scope checks.
The clientId path parameter is resolved inside the company bound to the Public API token when present.
curl -X PATCH "https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({workoutSource: 'freestyle'})
};
fetch('https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/groups/runs/{runId}/participants/{clientId}/workout-source"
payload = { "workoutSource": "freestyle" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"runId": "66f7b8b1e13c8d25f4d3d90a",
"clientId": "66f7b8b1e13c8d25f4d3d90a",
"sessionId": "66f7b8b1e13c8d25f4d3d90a",
"workoutSource": "string",
"sourceLabel": "string",
"requiresConfirmation": true,
"confirmationToken": "string",
"confirmationTokenExpiresAt": "2026-07-14T10:00:00.000Z",
"performanceCleared": true,
"runTimer": {
"timerStartedAt": "2026-07-14T10:00:00.000Z",
"timerPausedAt": "2026-07-14T10:00:00.000Z",
"timerElapsedMs": 1
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_.... Each resource request rechecks the token company's current provider access. Disabling access blocks existing tokens with 403 auth.provider_unavailable.
Headers
Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.
1 - 200"booking-create-20260714-001"
Path Parameters
Group workout run id.
"67f1234567890abcdef1234"
Participant client id.
"67f1234567890abcdef1234"
Body
auto_assigned_plan, manual_assigned_plan, template, group_workout_template, freestyle, wod "freestyle"
Required when workoutSource is manual_assigned_plan, template, or group_workout_template.
null
Required when workoutSource is manual_assigned_plan, template, or group_workout_template.
null
Confirms the source change may restart the participant and clear existing performance rows from the current session.
false
continue, restart "continue"