List UpperSecondaryGrades
curl --request GET \
--url https://api.meitner.se/data-export/v1/upper-secondary-grade \
--header 'Client-ID: <api-key>' \
--header 'Client-Secret: <api-key>'import requests
url = "https://api.meitner.se/data-export/v1/upper-secondary-grade"
headers = {
"Client-ID": "<api-key>",
"Client-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Client-ID': '<api-key>', 'Client-Secret': '<api-key>'}
};
fetch('https://api.meitner.se/data-export/v1/upper-secondary-grade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meitner.se/data-export/v1/upper-secondary-grade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Client-ID: <api-key>",
"Client-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meitner.se/data-export/v1/upper-secondary-grade"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Client-ID", "<api-key>")
req.Header.Add("Client-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meitner.se/data-export/v1/upper-secondary-grade")
.header("Client-ID", "<api-key>")
.header("Client-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meitner.se/data-export/v1/upper-secondary-grade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Client-ID"] = '<api-key>'
request["Client-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"school": {
"id": "12345678-1234-1234-1234-123456789012",
"displayName": "Meitner Grundskola"
},
"student": {
"id": "12345678-1234-1234-1234-123456789012",
"identityNumber": "20000101-1234",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2000-01-01",
"gender": "Male",
"schoolType": "GR",
"schoolYear": "9",
"class": "Klass 9A"
},
"subject": {
"title": "Matematik",
"code": "MAT"
},
"course": {
"title": "Matematik 2b",
"code": "MATMAT02B"
},
"grade": "A",
"gradeDate": "2024-01-01",
"schoolYear": "9",
"languageCode": "DEU",
"startDate": "2024-01-01",
"endDate": "2024-01-01",
"section": "General",
"programDisplayName": "Program 1",
"programTemplateTitle": "Program 1",
"orientationTitle": "Orientation 1",
"orientationCode": "ORI1"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}{
"error": {
"code": "BadRequest",
"message": "The request contains invalid parameters or malformed data",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Unauthorized",
"message": "Authentication credentials are missing or invalid",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Forbidden",
"message": "You do not have permission to perform this operation",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "NotFound",
"message": "The requested resource could not be found",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Conflict",
"message": "The request conflicts with the current state of the resource",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "RateLimited",
"message": "Too many requests - rate limit exceeded",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Internal",
"message": "An unexpected server error occurred",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}UpperSecondaryGrade
List UpperSecondaryGrades
Returns a paginated list of all UpperSecondaryGrades in your organization.
GET
/
upper-secondary-grade
List UpperSecondaryGrades
curl --request GET \
--url https://api.meitner.se/data-export/v1/upper-secondary-grade \
--header 'Client-ID: <api-key>' \
--header 'Client-Secret: <api-key>'import requests
url = "https://api.meitner.se/data-export/v1/upper-secondary-grade"
headers = {
"Client-ID": "<api-key>",
"Client-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Client-ID': '<api-key>', 'Client-Secret': '<api-key>'}
};
fetch('https://api.meitner.se/data-export/v1/upper-secondary-grade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meitner.se/data-export/v1/upper-secondary-grade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Client-ID: <api-key>",
"Client-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meitner.se/data-export/v1/upper-secondary-grade"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Client-ID", "<api-key>")
req.Header.Add("Client-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meitner.se/data-export/v1/upper-secondary-grade")
.header("Client-ID", "<api-key>")
.header("Client-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meitner.se/data-export/v1/upper-secondary-grade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Client-ID"] = '<api-key>'
request["Client-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"school": {
"id": "12345678-1234-1234-1234-123456789012",
"displayName": "Meitner Grundskola"
},
"student": {
"id": "12345678-1234-1234-1234-123456789012",
"identityNumber": "20000101-1234",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2000-01-01",
"gender": "Male",
"schoolType": "GR",
"schoolYear": "9",
"class": "Klass 9A"
},
"subject": {
"title": "Matematik",
"code": "MAT"
},
"course": {
"title": "Matematik 2b",
"code": "MATMAT02B"
},
"grade": "A",
"gradeDate": "2024-01-01",
"schoolYear": "9",
"languageCode": "DEU",
"startDate": "2024-01-01",
"endDate": "2024-01-01",
"section": "General",
"programDisplayName": "Program 1",
"programTemplateTitle": "Program 1",
"orientationTitle": "Orientation 1",
"orientationCode": "ORI1"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}{
"error": {
"code": "BadRequest",
"message": "The request contains invalid parameters or malformed data",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Unauthorized",
"message": "Authentication credentials are missing or invalid",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Forbidden",
"message": "You do not have permission to perform this operation",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "NotFound",
"message": "The requested resource could not be found",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Conflict",
"message": "The request conflicts with the current state of the resource",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "RateLimited",
"message": "Too many requests - rate limit exceeded",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "Internal",
"message": "An unexpected server error occurred",
"requestID": "550e8400-e29b-41d4-a716-446655440000"
}
}Authorizations
ClientCredentials & ClientSecretOAuth2
Query Parameters
The maximum number of UpperSecondaryGrades to return (default: 50) when listing UpperSecondaryGrades
Example:
1
The number of UpperSecondaryGrades to skip before starting to return results (default: 0) when listing UpperSecondaryGrades
Example:
0
Response
Response for UpperSecondaryGrade List operation - returns a paginated list of UpperSecondaryGrade
Array of UpperSecondaryGrade objects
Show child attributes
Show child attributes
Example:
[
{
"school": {
"id": "12345678-1234-1234-1234-123456789012",
"displayName": "Meitner Grundskola"
},
"student": {
"id": "12345678-1234-1234-1234-123456789012",
"identityNumber": "20000101-1234",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2000-01-01",
"gender": "Male",
"schoolType": "GR",
"schoolYear": "9",
"class": "Klass 9A"
},
"subject": { "title": "Matematik", "code": "MAT" },
"course": {
"title": "Matematik 2b",
"code": "MATMAT02B"
},
"grade": "A",
"gradeDate": "2024-01-01",
"schoolYear": "9",
"languageCode": "DEU",
"startDate": "2024-01-01",
"endDate": "2024-01-01",
"section": "General",
"programDisplayName": "Program 1",
"programTemplateTitle": "Program 1",
"orientationTitle": "Orientation 1",
"orientationCode": "ORI1"
}
]
Pagination information
Show child attributes
Show child attributes
Example:
{ "offset": 0, "limit": 1, "total": 100 }
⌘I