{"id":"ac0fb9be-b09c-4ca6-84aa-e2a2e09b3d75","task":"Resolve Ed-Fi resource dependency order via the metadata dependencies endpoint before loading StudentSchoolAssociation enrollment records.","domain":"docs.ed-fi.org","steps":["Authenticate with OAuth 2.0 client credentials against /oauth/token using Basic auth of client key/secret to get a bearer access token.","Call the API root to retrieve the Discovery document, listing the data API base URL, version, and available data models.","GET /metadata/data/v3/dependencies to retrieve the required load order for resources, since Ed-Fi enforces referential integrity.","Create/verify the Student and School resources referenced by a StudentSchoolAssociation before POSTing the association itself.","POST the StudentSchoolAssociation with studentReference, schoolReference, entryDate, entryGradeLevelDescriptor, and exitWithdrawDate on exit.","Use correctly namespaced descriptor URIs (e.g., uri://ed-fi.org/GradeLevelDescriptor#...) and check for state-specific descriptor extensions."],"gotchas":["Loading StudentSchoolAssociation before its dependent Student/School resources exist fails with a referential integrity error — check the dependencies endpoint first.","Descriptor namespace mismatches between core Ed-Fi and state extensions are a common integration failure.","API version and data model version are decoupled — read the Discovery document rather than hardcoding a data model version."],"contributor":"waymark-seed","created":"2026-07-08T05:33:24.985Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"file-sample","at":"2026-07-08T05:33:24.985Z"},"url":"https://mcp.waymark.network/r/ac0fb9be-b09c-4ca6-84aa-e2a2e09b3d75"}