from meitner import Meitner, models
import os
with Meitner(
security=models.Security(
client_credentials=os.getenv("MEITNER_CLIENT_CREDENTIALS", ""),
client_secret=os.getenv("MEITNER_CLIENT_SECRET", ""),
),
) as m_client:
res = m_client.student_placements.list(limit=1, offset=0)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"meta": {
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
"updatedAt": "2024-01-15T14:45:00Z",
"updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
},
"external": {
"sourceID": "12345678",
"source": "ExternalIntegrationAPI"
},
"studentID": "123e4567-e89b-12d3-a456-426614174000",
"schoolID": "123e4567-e89b-12d3-a456-426614174000",
"schoolType": "GR",
"schoolYear": "1",
"hasChildcare": true,
"motherTongue": "SWE",
"startDate": "2024-08-01",
"endDate": "2025-08-01",
"archiveYear": "2024_2025",
"archivedAt": "2024-08-01T00:00:00Z"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}Returns a paginated list of all StudentPlacements in your organization.
from meitner import Meitner, models
import os
with Meitner(
security=models.Security(
client_credentials=os.getenv("MEITNER_CLIENT_CREDENTIALS", ""),
client_secret=os.getenv("MEITNER_CLIENT_SECRET", ""),
),
) as m_client:
res = m_client.student_placements.list(limit=1, offset=0)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"meta": {
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
"updatedAt": "2024-01-15T14:45:00Z",
"updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
},
"external": {
"sourceID": "12345678",
"source": "ExternalIntegrationAPI"
},
"studentID": "123e4567-e89b-12d3-a456-426614174000",
"schoolID": "123e4567-e89b-12d3-a456-426614174000",
"schoolType": "GR",
"schoolYear": "1",
"hasChildcare": true,
"motherTongue": "SWE",
"startDate": "2024-08-01",
"endDate": "2025-08-01",
"archiveYear": "2024_2025",
"archivedAt": "2024-08-01T00:00:00Z"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}The maximum number of StudentPlacements to return (default: 50) when listing StudentPlacements
The number of StudentPlacements to skip before starting to return results (default: 0) when listing StudentPlacements
Response for StudentPlacement List operation - returns a paginated list of StudentPlacement
Array of StudentPlacement objects
Show child attributes
Unique identifier for the StudentPlacement
The ID of the student the placement belongs to
The ID of the school the student is placed in
The school type for the student, if not provided on Create, the school type will be fetched from the school.
GR, GRAN, GY, GYAN, FS "GR"
The start date of the placement
Metadata information for the StudentPlacement
Show child attributes
Timestamp when the resource was created
User who created the resource
Timestamp when the resource was last updated
User who last updated the resource
{
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
"updatedAt": "2024-01-15T14:45:00Z",
"updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
}External is a reusable object that can be used to store external information about the student placement from another system, used for third-party integration tracking.
{
"sourceID": "12345678",
"source": "ExternalIntegrationAPI"
}The school year the student is placed in
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 "1"
Whether the student has childcare
The mother tongue of the student. Language codes follow the ISO 639-3 standard (three-letter codes).
The end date of the placement
The year the placement was archived for the student, in the format YYYY_YYYY where the first year is the autumn and the second year is the spring.
The timestamp the placement was archived for the student
Pagination information
{ "offset": 0, "limit": 1, "total": 100 }