POST api/LMS/Enrollments/Batch LMS All Services
Creates all Enrollments given in the API request body. Result Code of 0 denotes success.
Request Information
Headers
| Fields | Type | M/O/C | Definition |
| AccountLoginName | String(50) | Mandatory | Login name of an account used for logging into Galaxy application to perform the service call |
| AccountPassword | String(50) | Mandatory | Password of an account used for logging into Galaxy application to perform the service call |
| SourceSystemID | String(50) | Mandatory | Name or ID of application or system that initiated the call. |
| DomainID | String(50) | Mandatory | Name or ID of the domain that the call is being made to. (Value will be 1, if the site only has one domain) |
| Accept | String | Optional | Format in which client expects the response: [application/json] (default), [application/xml] |
| ContentType | String | Optional | Format in which client is sending the request: [application/json] (default), [application/xml] |
Parameters
| Name | Description | Additional information | Type | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| models |
Define this parameter in the request body. |
IEnumerable<EnrollmentDTO> | |||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
Request body formats
application/json, text/json
Sample:
[
{
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7184636+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7184636+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
},
{
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7184636+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7184636+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
},
{
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7184636+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7184636+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfEnrollmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LMS.API.Service.Models.LMS">
<EnrollmentDTO>
<CourseCode>sample string 3</CourseCode>
<EnrollmentID>1</EnrollmentID>
<ExpiryDate>2025-10-26T11:10:05.7184636+00:00</ExpiryDate>
<Instructor>sample string 5</Instructor>
<LastLaunched>1</LastLaunched>
<LoginName>sample string 2</LoginName>
<ReservationNumber>sample string 6</ReservationNumber>
<StartDate>2025-10-26T11:10:05.7184636+00:00</StartDate>
</EnrollmentDTO>
<EnrollmentDTO>
<CourseCode>sample string 3</CourseCode>
<EnrollmentID>1</EnrollmentID>
<ExpiryDate>2025-10-26T11:10:05.7184636+00:00</ExpiryDate>
<Instructor>sample string 5</Instructor>
<LastLaunched>1</LastLaunched>
<LoginName>sample string 2</LoginName>
<ReservationNumber>sample string 6</ReservationNumber>
<StartDate>2025-10-26T11:10:05.7184636+00:00</StartDate>
</EnrollmentDTO>
<EnrollmentDTO>
<CourseCode>sample string 3</CourseCode>
<EnrollmentID>1</EnrollmentID>
<ExpiryDate>2025-10-26T11:10:05.7184636+00:00</ExpiryDate>
<Instructor>sample string 5</Instructor>
<LastLaunched>1</LastLaunched>
<LoginName>sample string 2</LoginName>
<ReservationNumber>sample string 6</ReservationNumber>
<StartDate>2025-10-26T11:10:05.7184636+00:00</StartDate>
</EnrollmentDTO>
</ArrayOfEnrollmentDTO>
Return Type
| Return type | IEnumerable<ResultModel`1> | ||||||||||||||||||
| |||||||||||||||||||
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"Model": {
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7285973+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7285973+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
},
"Message": "sample string 1",
"Code": 0
},
{
"Model": {
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7285973+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7285973+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
},
"Message": "sample string 1",
"Code": 0
},
{
"Model": {
"EnrollmentID": 1,
"LoginName": "sample string 2",
"CourseCode": "sample string 3",
"StartDate": "2025-10-26T11:10:05.7285973+00:00",
"ExpiryDate": "2025-10-26T11:10:05.7285973+00:00",
"LastLaunched": 1,
"Instructor": "sample string 5",
"ReservationNumber": "sample string 6"
},
"Message": "sample string 1",
"Code": 0
}
]
application/xml, text/xml
Sample:
<ArrayOfResultModelOfEnrollmentDTO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResultModelOfEnrollmentDTO>
<Model>
<EnrollmentID>1</EnrollmentID>
<LoginName>sample string 2</LoginName>
<CourseCode>sample string 3</CourseCode>
<StartDate>2025-10-26T11:10:05.7285973+00:00</StartDate>
<ExpiryDate>2025-10-26T11:10:05.7285973+00:00</ExpiryDate>
<LastLaunched>1</LastLaunched>
<Instructor>sample string 5</Instructor>
<ReservationNumber>sample string 6</ReservationNumber>
</Model>
<Message>sample string 1</Message>
<Code>OK</Code>
</ResultModelOfEnrollmentDTO>
<ResultModelOfEnrollmentDTO>
<Model>
<EnrollmentID>1</EnrollmentID>
<LoginName>sample string 2</LoginName>
<CourseCode>sample string 3</CourseCode>
<StartDate>2025-10-26T11:10:05.7285973+00:00</StartDate>
<ExpiryDate>2025-10-26T11:10:05.7285973+00:00</ExpiryDate>
<LastLaunched>1</LastLaunched>
<Instructor>sample string 5</Instructor>
<ReservationNumber>sample string 6</ReservationNumber>
</Model>
<Message>sample string 1</Message>
<Code>OK</Code>
</ResultModelOfEnrollmentDTO>
<ResultModelOfEnrollmentDTO>
<Model>
<EnrollmentID>1</EnrollmentID>
<LoginName>sample string 2</LoginName>
<CourseCode>sample string 3</CourseCode>
<StartDate>2025-10-26T11:10:05.7285973+00:00</StartDate>
<ExpiryDate>2025-10-26T11:10:05.7285973+00:00</ExpiryDate>
<LastLaunched>1</LastLaunched>
<Instructor>sample string 5</Instructor>
<ReservationNumber>sample string 6</ReservationNumber>
</Model>
<Message>sample string 1</Message>
<Code>OK</Code>
</ResultModelOfEnrollmentDTO>
</ArrayOfResultModelOfEnrollmentDTO>