Training Courses

class fabman.training_course.TrainingCourse(requester: Requester, attributes: dict)

TrainingCourse Object handles all API calls that operate on a single TrainingCourse.

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with

delete(**kwargs) Response

Delete the training course. WARNING: THIS CANNOT BE UNDONE.

Calls:

“DELETE /training-courses/{id}” <https://fabman.io/api/v1/documentation#/training-courses/deleteTrainingcoursesId>

Returns:

response information of call

Return type:

requests.Response

update(**kwargs) None

Update the training course with the given data. Will create the data if the training course does not exist.

Calls:

“PUT /training-courses/{id}” <https://fabman.io/api/v1/documentation#/training-courses/putTrainingcoursesId>

Returns:

None – attributes are updated in place

Return type:

None