MinUddannelse Api

<back to all web services

PersonaleImportRequest

Requires Authentication
Required role:StamdataproviderRequires any of the roles:NovaLink, Forlag, Trivsel, Aula, Skemaprovider, Skemasubscriber, Stamdataprovider, Elevflytning, MueApi
The following routes are available for this service:
POST/personaleadmin/uploadUpload total fra Personaleadministrativ løsning.
PersonaleImportRequest Parameters:
NameParameterData TypeRequiredDescription
SchoolCodebodystringYesSchoolCode
SchoolYearbodyintYesSchoolYear (2022, 2023 and so on)
TransactionIdbodystringYesId to identity the exact import
CalendarbodyIEnumerable<CalendarDayDto>NoSchool calendar
SubjectsbodyIEnumerable<SubjectDto>NoSchool subjects
PersonnelbodyIEnumerable<EmployeeDto>YesSchool personnel
RoomsbodyIEnumerable<RoomDto>NoSchool rooms
GroupsbodyIEnumerable<GroupDto>NoSchool pupilgroups
TeamsbodyIEnumerable<TeamDto>NoSchool teams
ClassesbodyIEnumerable<ClassDto>NoSchool classes
CalendarDayDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
FromformDateTimeNo
ToformDateTimeNo
NameformstringNo
TypeformCalendarPeriodTypeYesType of calender activity

Allowable Values

  • Vacation
  • StudentDayOff
  • OtherDayOff
  • ReplacementDayOff
  • RescheduledDay
CalendarPeriodType Enum:
Vacation
StudentDayOff
OtherDayOff
ReplacementDayOff
RescheduledDay
SubjectDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
NameformstringNo
AbbreviationformstringNo
FromformDateTimeNo
ToformDateTime?No
EmployeeDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
CPRformstringNo
InitialsformstringNo
GivenNameformstringNo
SurnameformstringNo
CoNameformstringNo
AddressformstringNo
AddressProtectionformbool?No
CityformstringNo
PostalCodeformstringNo
PhoneNumberformPhoneNumberDtoNo
MobileNumberformPhoneNumberDtoNo
EmailformstringNo
TransferToStilformbool?No
EmploymentsformIEnumerable<EmploymentDto>No
RolesformIEnumerable<RoleDto>No
UniIdformstringNo
PhoneNumberDto Parameters:
NameParameterData TypeRequiredDescription
NumberformstringNo
IsProtectedformbool?No
EmploymentDto Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
FromformDateTimeNo
ToformDateTime?No
HoursPerWeekformdecimal?No
RoleDto Parameters:
NameParameterData TypeRequiredDescription
StilRoleformPersonaleRolleEnumNo

Allowable Values

  • Laerer
  • Paedagog
  • Vikar
  • Leder
  • Ledelse
  • Tap
  • Konsulent
  • Ekstern
  • Praktikant
  • Skolesekretaer
  • AktMedarbejder
FromformDateTimeNo
ToformDateTime?No
PersonaleRolleEnum Enum:
Laerer
Paedagog
Vikar
Leder
Ledelse
Tap
Konsulent
Ekstern
Praktikant
Skolesekretaer
AktMedarbejder
RoomDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
AbbreviationformstringNo
NameformstringNo
FromformDateTimeNo
ToformDateTime?No
GroupDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
NameformstringNo
SubjectAbbreviationformstringNo
DescriptionformstringNo
FromformDateTimeNo
ToformDateTime?No
ClassDescritionformstringNo
FromGradeformint?No
ToGradeformint?No
TeachersformIEnumerable<GroupTeacherDto>No
RoomsformIEnumerable<GroupRoomDto>No
GroupTeacherDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
FromformDateTimeNo
ToformDateTime?No
GroupRoomDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
FromformDateTimeNo
ToformDateTime?No
TeamDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
NameformstringNo
DescriptionformstringNo
FromformDateTimeNo
ToformDateTime?No
TeachersformIEnumerable<GroupTeacherDto>No
ClassDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformstringNo
FromformDateTimeNo
ToformDateTimeNo
AbbreviationformstringNo
NameformstringNo
TypeformintNo
GradeformintNo
TrackformstringNo
ClassTeachersformIEnumerable<ClassTeacherDto>No
ClassTeacherDto Parameters:
NameParameterData TypeRequiredDescription
LocalIdformintNo
FromformDateTimeNo
ToformDateTime?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /personaleadmin/upload HTTP/1.1 
Host: api.minuddannelse.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"schoolCode":"String","schoolYear":0,"transactionId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}