Feature¶
-
class
canvasapi.feature.
Feature
(requester, attributes)¶ Parameters: - requester (
canvasapi.requester.Requester
) – The requester to pass HTTP requests through. - attributes (dict) – The JSON object to build this object with.
- requester (
FeatureFlag¶
-
class
canvasapi.feature.
FeatureFlag
(requester, attributes)¶ Parameters: - requester (
canvasapi.requester.Requester
) – The requester to pass HTTP requests through. - attributes (dict) – The JSON object to build this object with.
-
delete
(feature, **kwargs)¶ Remove a feature flag for a given account, course or user.
Calls: DELETE /api/v1/courses/:course_id/features/flags/:feature
or DELETE /api/v1/accounts/:account_id/features/flags/:feature
Return type:
-
set_feature_flag
(feature, **kwargs)¶ Set a feature flag for a given account, course or user.
Calls: PUT /api/v1/courses/:course_id/features/flags/:feature
Parameters: feature (
canvasapi.feature.Feature
) – The feature object to setReturn type:
- requester (