What a submission is checked against, what a failure looks like, and what to do about it.
This page describes the validation that exists today. That validation is the Ed-Fi API's own: required fields, descriptor resolution, reference integrity and authorization. It is structural. It will tell you that a payload is malformed or points at something that does not exist. It will not tell you that an observation is implausible, that a teacher was rated on a look-for their form does not carry, or that the same observation has been submitted twice in different shapes.
Additional IIA-level validation is planned for a future release. A validation endpoint you can call before submitting, and a published catalogue of IIA-specific error conditions, are both intended and neither exists yet. Where this page says a check is not performed today, read that as a statement about today rather than a design decision. Build so that a stricter response later is a configuration change rather than a rewrite: treat any non-2xx as actionable, log the response body rather than only the status, and do not assume the set of reasons a submission can be refused is closed.
A submission passes through these in order, and it stops at the first failure. Knowing the order saves time, because a later-stage message never appears while an earlier stage is still failing.
| Stage | What is checked | Typical status |
|---|---|---|
| 1. Token | Your OAuth 2.0 client credentials are valid and unexpired | 401 |
| 2. Claim set | Your client may touch this resource type at all | 403 |
| 3. Education organization scope | Your credentials are scoped to the education organization in the payload | 403 |
| 4. Shape | Required fields present, types correct, descriptor URIs well formed | 400 |
| 5. Descriptor resolution | Each descriptor URI names a value that exists in this ODS | 400 |
| 6. Reference resolution | Each referenced parent exists, matched on its complete natural key | 400 |
| 7. Uniqueness | No existing record already holds this natural key | 409 |
Stages 2 and 3 both return 403 and read similarly. A claim-set refusal names the claim set you hold in its message; an education-organization scoping refusal does not. See Authorization Failures.
Stage 6 is the one that costs the most time, because the message names a key rather than a concept. An Ed-Fi reference matches on the parent's entire natural key. A single field that differs - including by case, by a trailing space, or by a school year integer that is one out - makes the reference resolve to nothing, and the response says the reference was not found rather than which field was wrong.
Two consequences worth designing around:
- Do not assemble natural keys from user input or from display titles. Resolve them from what you read out of the ODS. The EPDM Entity Hierarchy lists every field in each key cascade.
- A missing parent and a mistyped reference to a present parent fail identically. If a reference will not resolve, GET the parent with the same key fields before assuming the payload is at fault.
personReference carries two fields, personId and sourceSystemDescriptor, and both participate in resolution. A personId that is correct against the wrong source system does not resolve.
What is checked today: that the Person record exists in the ODS under that personId and sourceSystemDescriptor pair, and that your credentials are scoped to reach it. What is not checked today: whether the person you named is the teacher who was actually observed, or whether they are assigned to the education organization in the rest of the payload.
personId is the Ed-Fi StaffUniqueId as it appears in the district's ODS, resolved against the education organization the observation belongs to. sourceSystemDescriptor is always uri://ed-fi.org/SourceSystemDescriptor#State. Both the observed teacher and the observer are resolved this way.
Person records are pre-created and read-only to you. /ed-fi/people is read in your claim set, so a person you need but cannot find is an onboarding or roster-sync question rather than a record to create. See Reference Data Requirements.
If a person reference will not resolve, check in this order: the source system descriptor, then the identifier itself, then whether your credentials are scoped to that education organization. The third produces a 403 rather than a 400 and is not yours to fix - raise it with IIA.
An action step is a GoalTypeDescriptor value, so it is checked as a descriptor at stage 5: the URI must name a value the ODS holds. Two failure modes follow from that, and they are easy to confuse:
- You sent a title instead of an identifier. The
codeValueis nowTEAOF.AS.ID.34, not the action step's title. A June-era title is not a value the current seed holds and is refused. Map it through the Identifier Crosswalk. - You sent a retired identifier. Some values are live in the descriptor but offered by no observation form. The API accepts them, because the descriptor exists. See Action Steps for which those are.
Note the asymmetry: the first is refused and the second is not. Whether an action step is offered on the form being observed is not validated today. A step that belongs to another form, or to no form, will be accepted against any observation. Validating that pairing is part of the planned work above. Until it exists, the constraint has to live in your UI - present only the steps the observed form offers, which the observation tool pages list.
Ed-Fi resources are addressed by natural key, which shapes what correction looks like:
- Re-sending the same natural key with different values updates the record, rather than creating a second one. This is how a corrected rating is submitted.
- Changing a value that is part of the natural key creates a new record and leaves the original in place. This is the common way duplicates appear. Check the key cascade before changing a field that sits inside it.
- A record removed with DELETE takes its children with it where the reference is required.
There is no IIA-side reversal or moderation workflow for a submitted observation today. A wrong submission is corrected by re-submitting it, or raised with IIA if it cannot be.
Because the error catalogue is not published yet, what you log now is what makes a future support conversation short:
- The full response body, not just the status code. Ed-Fi returns a structured problem response and the useful part is inside it.
- The correlation or request identifier if your client surfaces one.
- The complete payload as sent, including the assembled references.
These are being worked with IIA and TEA and are not answerable from this page yet. They are listed so you can see the shape of what is coming rather than discover it later.
- A pre-submission validation endpoint, and whether it will be synchronous.
- Whether a
ratingoutside 0-4 is refused by the API or silently stored. - A published catalogue of IIA-specific error conditions and their remediation.
- Whether a form-membership check on action steps will be enforced at the API or stay a UI concern.
- Whether any reporting mechanism will exist for submissions accepted by the API but rejected downstream by IIA.
Payload Validation Checklist - the pre-flight pass to run before any of the above matters.