Common API Errors - Student Equity-VDG
- Cy Jones (Deactivated)
HTTP Code | Error Message | Strategies for fixing |
---|---|---|
400 | Validation of 'RESOURCE' failed. FIELD is required. | An element of the JSON that is required is missing and needs to be added. You can check the API Swagger docs (https://api.ed-fi.org/v5.2/docs/swagger/index.html?urls.primaryName=Resources) to see required elements. Open the resource POST section, then click on the Model tab under the JSON representation. Required elements are labeled with an * beside them. |
400 | 'RESOURCE' failed. RESOURCE reference could not be resolved. | A resource that was referenced from an entity does not yet exist: load the dependency resource first. See the section of this guide on "Dependency Ordering for Resources". |
403 | Authorization denied. The claim does not have any established relationships with the requested resource. | These are the most likely causes:
|
409 | A natural key conflict occurred when attempting to create a new resource 'RESOURCE' with a duplicate key. | The Ed-Fi API has a natural key system alongside a standard REST ID system. This error is often protecting against the erroneous creation of a duplicate record in the API. However, it may also indicate that the natural key requirements of the Ed-Fi API have not been satisfied, and the key needs to be modified. See the section in this guide on "API Resource Keys" |
409 | The resource (or a subordinate entity of the resource) cannot be deleted because it is a dependency of the 'RESOURCE' entity | The resource that the application is attempting to delete is referenced from another entity. Delete the other dependent entity first. |