PUT api/LMS/Courses/DefaultAction LMS All Services
This service updates an unpublished active or inactive course based on the values set in the DTO. (Note: It exact matches on the course code set in the DTO.It does not include 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 | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| model | Must set the Course Code field. |
Define this parameter in the request body. |
CourseDTO | ||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Request body formats
application/json, text/json
Sample:
{
"CourseCode": "sample string 1",
"CourseTitle": "sample string 2",
"EffectiveDate": "2025-10-26T11:05:32.7362594+00:00",
"ExpiryDate": "2025-10-26T11:05:32.7362594+00:00",
"IsPublished": true,
"Creator": "sample string 5",
"EstimatedHours": 6.1,
"ForceCompletion": true,
"TotalLessons": 8,
"TotalBlocks": 9
}
application/xml, text/xml
Sample:
<CourseDTO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CourseCode>sample string 1</CourseCode> <CourseTitle>sample string 2</CourseTitle> <EffectiveDate>2025-10-26T11:05:32.7362594+00:00</EffectiveDate> <ExpiryDate>2025-10-26T11:05:32.7362594+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>
Return Type
| Return type | null |