![]() | AcademicServiceUpdateCourseRequest Method |
Namespace: (Default Namespace)
public Result UpdateCourseRequest( CourseRequest oldRequest, CourseRequest newRequest, string authKey )
Exception | Condition |
---|---|
ApplicationException | Invalid authorization key |
An error will occur if the Course ID is not already requested. If the Course ID is already a pending course request, this call will update the pending record. Otherwise, a new pending course request record will be created.
The updated course request record will be placed in a pending status until reviewed and approved.
For the oldRequest parameter, only the SchoolID, StudentID and CourseID properties will be referenced.
For the newRequest parameter, the following properties in the Course Request object are used:
Property | Notes |
---|---|
SchoolID | Required
Must be the same as in the oldRequest parameter. Student must be in this school/division in the upcoming academic year. |
StudentID | Required
Must be the same as in the oldRequest parameter. |
CourseID | Required. Must be a valid Course ID for the next academic year. |
CourseIDAlt1 | Optional
Must be a valid Course ID for the next academic year. |
CourseIDAlt2 | Optional
Must be a valid Course ID for the next academic year. |
RequestPriority | Optional
Valid values are 0..99, inclusive. |
RequestedTerms | Optional
Within the Term object, only the Term.TermID property needs to be set. If no Terms are set, "all terms" is the default. |
The authorization key provided must be linked to an administrator role.