Carbohydrates: 60-80 g/hr
@@ -140,7 +147,7 @@ Personal, single-account use skips this. Build freely.
Sodium: 300-600 mg/hr
-
@@ -155,7 +162,10 @@ Column(
Text('Sodium: 300-600 mg/hr'),
GestureDetector(
onTap: () => launchUrl(Uri.parse(subscribeUrl)),
- child: SvgPicture.asset('assets/powered-by-saturday-stacked.svg', height: 40),
+ child: SvgPicture.asset(
+ 'assets/brand/powered-by-saturday-stacked-light.svg',
+ height: 40,
+ ),
),
],
)
diff --git a/guides/batch-operations.mdx b/guides/batch-operations.mdx
index 0dbf21a..707bea4 100644
--- a/guides/batch-operations.mdx
+++ b/guides/batch-operations.mdx
@@ -9,6 +9,8 @@ icon: 'layer-group'
Batch endpoints let you perform multiple operations in a single API call. Use these when you need to process a training week, onboard a team, or import historical activities.
+The examples read your key from a `SATURDAY_API_KEY` environment variable, as in [Quickstart](/quickstart). Sandbox keys are issued with their own base URL; using one against `api.saturday.fit` returns `401 invalid_api_key`.
+
## Batch calculate
Calculate prescriptions for multiple scenarios at once. Ideal for building "training week" views or "what if" comparisons.
@@ -17,84 +19,61 @@ Calculate prescriptions for multiple scenarios at once. Ideal for building "trai
POST /v1/nutrition/calculate/batch
```
+Each scenario is a full calculate request, so `athlete_id` goes on the scenario, not at the top level. Results come back in request order, and there is no per-scenario label: match results to inputs by position.
+