Skip to Content
High schools

High schools

Get all high schools

This endpoints returns all the high schools associated with the provided token.

You will only get high schools that you have access to.

curl https://api.ednia.se/elysia/external/highSchools \ -X GET \ -H "Authorization: Bearer <token>"

Responses

All responses have content type application/json.

200

Successful response. There is no pagination. High schools are sorted alphabetically.

{ "highSchools": [ { "id": "sample-high-school", "name": "Sample High School" } ] }

Get one high school

Query Parameters

nametyperequireddescription
idstringyesThe id of the high school.
curl https://api.ednia.se/elysia/external/highSchool?id=sample-high-school \ -X GET \ -H "Authorization: Bearer <token>"

Responses

All responses have content type application/json.

200

Successful response.

{ "name": "Sample High School", "id": "sample-high-school" }

404

A high school with the given id was not found.

{ "error": "Not Found" }

Error responses

401

If you encounter this error, you are not authenticated.

{ "error": "Unauthenticated" }

403

Unauthorized

{ "error": "Unauthorized" }

429

Rate limit exceeded. Please limit requests to 10 per second and 600 per hour.

{ "error": "Rate limit exceeded" }