Skip to content

Document the under_minimum_age refusal for athletes - #59

Merged
DrAlexHarrison merged 1 commit into
mainfrom
agefloor
Oct 1, 2026
Merged

DrAlexHarrison merged 1 commit into
mainfrom
agefloor

Conversation

@DrAlexHarrison

Copy link
Copy Markdown
Member

Saturday is for athletes 14 and up. Since fuel-backend #1409, partner athlete create, update (PATCH /v1/athletes/{id}) and batch create refuse a year_of_birth that makes the athlete younger than 14 (current year minus birth year). This documents it.

  • guides/athletes.mdx: the field table notes the minimum; a paragraph after the range rules gives the refusal (400, code under_minimum_age, param year_of_birth, message naming the minimum, nothing saved) with the real error envelope, and that an update's year_of_birth must be a whole number (invalid_value otherwise).
  • guides/batch-operations.mdx: an under-age item fails with under_minimum_age, its message naming the minimum.

The minimum is in the error message; the partner API error envelope has no separate minimum_age field (that field exists on Saturday's own hosted-onboarding page response, which partners do not call).

Checked: scripts/check-docs-drift.py against fuel-backend with the catalog entry (fuel-backend #1421): clean. scripts/test-response-examples.py: passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Aek3ta37FJ1uNY9tsKN7Zb

Saturday is for athletes 14 and up. Athlete create, update and batch create
refuse a year_of_birth under that with 400 under_minimum_age, param
year_of_birth, a message naming the minimum, and nothing saved; an update's
year_of_birth must be a whole number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Aek3ta37FJ1uNY9tsKN7Zb

Ci-From: linux
Ci-Session: 2f7dde44-6453-4443-8eb6-ed6139599bb2
@DrAlexHarrison
DrAlexHarrison merged commit 286785f into main Oct 1, 2026
4 checks passed
@DrAlexHarrison
DrAlexHarrison deleted the agefloor branch October 2, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant