catalogProgramsCreateWithHttpInfo method
POST Add or update a program. Params: course_list: Array of dict with course_id keys {'course_id': 'course-v1:A+B+C'} # update: Whether this is strictly a create (if true, then will update or create)
Note: This method returns the HTTP Response.
Implementation
Future<Response> catalogProgramsCreateWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/api/catalog/programs/';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}