From c776916a910fecc7f05c17180f8a7c977b9f4212 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 10 Jul 2026 11:35:22 +0000 Subject: [PATCH] docs: fix incorrect SAT quick-start example in README The SAT enrollment example posted to a fictitious /sat/v1/users path with a group_id field that doesn't exist on any schema. The real endpoint (POST /api/groups/) creates a target group with a targets array, per sat/openapi.yaml, and is what "enroll a user" maps to; POST /users/ is an unrelated admin-only system-user endpoint. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5feb8bc..43f3019 100644 --- a/README.md +++ b/README.md @@ -54,13 +54,13 @@ curl -X GET "https://api.hailbytes.com/asm/v1/assets" \ -H "Content-Type: application/json" ``` -### SAT — Enroll a User +### SAT — Enroll a User in a Training Group ```bash -curl -X POST "https://api.hailbytes.com/sat/v1/users" \ +curl -X POST "https://api.hailbytes.com/api/groups/" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ - -d '{"email": "user@example.com", "group_id": "grp_abc123"}' + -d '{"name": "New Hires", "targets": [{"email": "user@example.com", "first_name": "Jane", "last_name": "Doe"}]}' ``` ---