catalogPathwaysCreateWithHttpInfo method
POST Add or update a pathway. Params: pathway_id user_id name slug visible path: Array of dict with course_id keys {'course_id': 'course-v1:A+B+C'}
Note: This method returns the HTTP Response.
Implementation
Future<Response> catalogPathwaysCreateWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/api/catalog/pathways/';
// 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,
);
}