PollChoice
- class canvasapi.poll_choice.PollChoice(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(**kwargs)
Delete a single poll, based on the poll id.
- Calls:
- Returns:
True if the deletion was successful, false otherwise.
- Return type:
bool
- update(poll_choice, **kwargs)
Update an existing choice for this poll.
- Calls:
- Parameters:
poll_choice (list) – List of arguments. ‘text’ is required and ‘is_correct’ and ‘position’ are optional.
- Return type: