GET api/LMS/Courses/GetByCourseCode?CourseCode={CourseCode} LMS All Services
This service returns all active courses that contain on the Course Code passed in. (Note: It does not include inactive or deleted courses.)
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 |
|---|---|---|---|
| CourseCode | max 50 characters |
Define this parameter in the request URI. |
String |
Return Type
| Return type | CourseDTO[] | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"CourseCode": "sample string 1",
"CourseTitle": "sample string 2",
"EffectiveDate": "2025-10-26T11:02:57.4632133+00:00",
"ExpiryDate": "2025-10-26T11:02:57.4632133+00:00",
"IsPublished": true,
"Creator": "sample string 5",
"EstimatedHours": 6.1,
"ForceCompletion": true,
"TotalLessons": 8,
"TotalBlocks": 9
},
{
"CourseCode": "sample string 1",
"CourseTitle": "sample string 2",
"EffectiveDate": "2025-10-26T11:02:57.4632133+00:00",
"ExpiryDate": "2025-10-26T11:02:57.4632133+00:00",
"IsPublished": true,
"Creator": "sample string 5",
"EstimatedHours": 6.1,
"ForceCompletion": true,
"TotalLessons": 8,
"TotalBlocks": 9
},
{
"CourseCode": "sample string 1",
"CourseTitle": "sample string 2",
"EffectiveDate": "2025-10-26T11:02:57.4632133+00:00",
"ExpiryDate": "2025-10-26T11:02:57.4632133+00:00",
"IsPublished": true,
"Creator": "sample string 5",
"EstimatedHours": 6.1,
"ForceCompletion": true,
"TotalLessons": 8,
"TotalBlocks": 9
}
]
application/xml, text/xml
Sample:
<ArrayOfCourseDTO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CourseDTO>
<CourseCode>sample string 1</CourseCode>
<CourseTitle>sample string 2</CourseTitle>
<EffectiveDate>2025-10-26T11:02:57.4632133+00:00</EffectiveDate>
<ExpiryDate>2025-10-26T11:02:57.4632133+00:00</ExpiryDate>
<IsPublished>true</IsPublished>
<Creator>sample string 5</Creator>
<EstimatedHours>6.1</EstimatedHours>
<ForceCompletion>true</ForceCompletion>
<TotalLessons>8</TotalLessons>
<TotalBlocks>9</TotalBlocks>
</CourseDTO>
<CourseDTO>
<CourseCode>sample string 1</CourseCode>
<CourseTitle>sample string 2</CourseTitle>
<EffectiveDate>2025-10-26T11:02:57.4632133+00:00</EffectiveDate>
<ExpiryDate>2025-10-26T11:02:57.4632133+00:00</ExpiryDate>
<IsPublished>true</IsPublished>
<Creator>sample string 5</Creator>
<EstimatedHours>6.1</EstimatedHours>
<ForceCompletion>true</ForceCompletion>
<TotalLessons>8</TotalLessons>
<TotalBlocks>9</TotalBlocks>
</CourseDTO>
<CourseDTO>
<CourseCode>sample string 1</CourseCode>
<CourseTitle>sample string 2</CourseTitle>
<EffectiveDate>2025-10-26T11:02:57.4632133+00:00</EffectiveDate>
<ExpiryDate>2025-10-26T11:02:57.4632133+00:00</ExpiryDate>
<IsPublished>true</IsPublished>
<Creator>sample string 5</Creator>
<EstimatedHours>6.1</EstimatedHours>
<ForceCompletion>true</ForceCompletion>
<TotalLessons>8</TotalLessons>
<TotalBlocks>9</TotalBlocks>
</CourseDTO>
</ArrayOfCourseDTO>