catalogEnrollmentProgramsCreateWithHttpInfo method
POST Log user enrollment with program. Params: user_id program_id org started (date string?) expired (date string?) active (default True)
Note: This method returns the HTTP Response.
Implementation
Future<Response> catalogEnrollmentProgramsCreateWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/api/catalog/enrollment/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,
);
}