Update students
Changed onUpdate up to DEFAULT_BATCH_MAX_ITEMS students in a single request.
Replaces single-resource PATCH /v2/students/{id}/ from ACCEL-256 — never publicly released.
Each item identifies a student via id (preferred) or attributes.email (fallback). The email field is read-only — it serves as the lookup identifier when id is absent, or as confirmation when id is present. It cannot be changed via this endpoint. Updatable attributes: first_name, last_name, is_inactive.
Each item is processed independently — failures on one row do not abort the rest. Response is 200 if all items succeed, 207 if any fail, 400 if the request envelope is empty or over the cap.
Per-item failure code is one of:
- not_found — student missing in this org
- validation_error — anonymized/SSO/inactive guard rejected the update, or email confirmation did not match the student's current email
To reactivate AND modify other fields, send two PATCHes:
- First PATCH: {"data": [{"id": "...", "attributes": {"is_inactive": false}}]}
- Second PATCH: {"data": [{"id": "...", "attributes": {"first_name": "..."}}]}
See api_v2/docs/batch-responses.md for the envelope shape.
Required OAuth scope: students:write
Request
- Base URLhttps://api.skilljar.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Changes
- warning
added the new
already_in_pathenum value to the////response property for the response status - warning
added the new
already_in_pathenum value to the////response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status
- info