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.employee_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"
},
"employeeID": "123e4567-e89b-12d3-a456-426614174000",
"schoolID": "123e4567-e89b-12d3-a456-426614174000",
"signature": "LM",
"title": "Principal",
"roles": [
"Admin"
],
"startDate": "2024-08-01",
"endDate": "2024-08-01",
"archiveYear": "2024_2025",
"archivedAt": "2024-08-01T00:00:00Z"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}Returns a paginated list of all EmployeePlacements 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.employee_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"
},
"employeeID": "123e4567-e89b-12d3-a456-426614174000",
"schoolID": "123e4567-e89b-12d3-a456-426614174000",
"signature": "LM",
"title": "Principal",
"roles": [
"Admin"
],
"startDate": "2024-08-01",
"endDate": "2024-08-01",
"archiveYear": "2024_2025",
"archivedAt": "2024-08-01T00:00:00Z"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 100
}
}The maximum number of EmployeePlacements to return (default: 50) when listing EmployeePlacements
The number of EmployeePlacements to skip before starting to return results (default: 0) when listing EmployeePlacements
Response for EmployeePlacement List operation - returns a paginated list of EmployeePlacement
Array of EmployeePlacement objects
Show child attributes
Unique identifier for the EmployeePlacement
The ID of the employee the placement belongs to
The ID of the school the placement belongs to
The start date of the placement for the employee
Metadata information for the EmployeePlacement
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 guardian from another system, used for third-party integration tracking.
{
"sourceID": "12345678",
"source": "ExternalIntegrationAPI"
}The signature of the employee
The title of the employee
The roles of the employee
The role of the employee in the placement
Admin, CareTeam, Manager, OtherPersonnel, Scheduler, Teacher The end date of the placement for the employee
The year the placement was archived for the employee, 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 employee
Pagination information
{ "offset": 0, "limit": 1, "total": 100 }