PatchAssignmentData#

class PatchAssignmentData[source]#

Input data required for the Assignment::Patch operation.

state: Union[Just[AssignmentStateEnum], _Nothing[AssignmentStateEnum]] = Nothing#

The new state of the assignment. Deprecated, use the availability and grade_availability options, will be removed in Q3 2023.

name: Union[Just[str], _Nothing[str]] = Nothing#

The new name of the assignment

deadline: Union[Just[datetime], _Nothing[datetime]] = Nothing#

The new deadline of the assignment

lock_date: Union[Just[Optional[datetime]], _Nothing[Optional[datetime]]] = Nothing#

The new lock date of the assignment

max_grade: Union[Just[Optional[float]], _Nothing[Optional[float]]] = Nothing#

The maximum possible grade for this assignment. You can reset this by passing null as value

group_set_id: Union[Just[Optional[int]], _Nothing[Optional[int]]] = Nothing#

The group set id for this assignment. Set to null to make this assignment not a group assignment

available_at: Union[Just[Optional[datetime]], _Nothing[Optional[datetime]]] = Nothing#

The time the assignment should become available. Deprecated, use the “availability” option, will be removed in Q3 2023.

Should we send login links to students before the assignment opens. This is only available for assignments with ‘kind’ equal to ‘exam’.

kind: Union[Just[AssignmentKind], _Nothing[AssignmentKind]] = Nothing#

The new kind of assignment

files_upload_enabled: Union[Just[bool], _Nothing[bool]] = Nothing#

Should students be allowed to make submissions by uploading files

webhook_upload_enabled: Union[Just[bool], _Nothing[bool]] = Nothing#

Should students be allowed to make submissions using git webhooks

max_submissions: Union[Just[Optional[int]], _Nothing[Optional[int]]] = Nothing#

The maximum amount of submissions a user may create.

cool_off_period: Union[Just[float], _Nothing[float]] = Nothing#

The amount of time in seconds there should be between amount_in_cool_off_period + 1 submissions.

amount_in_cool_off_period: Union[Just[int], _Nothing[int]] = Nothing#

The maximum amount of submissions that can be made within cool_off_period seconds. This should be higher than or equal to 1.

ignore: Union[Just[Union[SubmissionValidatorInputData, str]], _Nothing[Union[SubmissionValidatorInputData, str]]] = Nothing#

The ignore file to use

ignore_version: Union[Just[Literal['EmptySubmissionFilter', 'IgnoreFilterManager', 'SubmissionValidator']], _Nothing[Literal['EmptySubmissionFilter', 'IgnoreFilterManager', 'SubmissionValidator']]] = Nothing#

The ignore version to use, defaults to “IgnoreFilterManager”.

done_type: Union[Just[Optional[AssignmentDoneType]], _Nothing[Optional[AssignmentDoneType]]] = Nothing#

How to determine grading is done for this assignment, this value is not used when reminder_time is null.

reminder_time: Union[Just[Optional[datetime]], _Nothing[Optional[datetime]]] = Nothing#

At what time should we send the reminder emails to the graders. This value is not used when done_type is null.

done_email: Union[Just[Optional[str]], _Nothing[Optional[str]]] = Nothing#

A list of emails that should receive an email when grading is done. This value has no effect when done_type is set to null.

anonymized_grading: Union[Just[Optional[AssignmentAnonymizationAlgo]], _Nothing[Optional[AssignmentAnonymizationAlgo]]] = Nothing#

Should anonymized grading be enabled for this assignment.

file_to_load_first: Union[Just[Optional[str]], _Nothing[Optional[str]]] = Nothing#

The file we should load first in an assignment

grading: Union[Just[Union[AssignmentPointsGradingSettings, AssignmentPercentageGradingSettings]], _Nothing[Union[AssignmentPointsGradingSettings, AssignmentPercentageGradingSettings]]] = Nothing#

Grading settings of this assignment.

availability: Union[Just[Union[FixedAvailability, TimedAvailability]], _Nothing[Union[FixedAvailability, TimedAvailability]]] = Nothing#

The availability of this assignment.

grade_availability: Union[Just[FixedGradeAvailability], _Nothing[FixedGradeAvailability]] = Nothing#

The grade availability of this assignment.

submission_mode: Union[Just[AssignmentSubmissionMode], _Nothing[AssignmentSubmissionMode]] = Nothing#

The submission mode of this assignment