PUT api/Sections/{SectionId}/Assignments/{AssignmentId}
Updates an existing Assignment. To assign an existing Assignment that is part of the Section's Section Group and Lesson Plan, pass in the SectionId of the Section to be assigned. The Assigned Date and Due Date will only change the dates for the passed SectionId. All other values will change the Assignment for all Sections.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
SectionId |
The application identifier for the Section |
globally unique identifier |
Required |
AssignmentId |
The application identifier for the Assignment |
globally unique identifier |
Required |
Body Parameters
AssignmentUpdateName | Description | Type | Additional information |
---|---|---|---|
Title |
The title for the Assignment. |
string |
None. |
Description |
The description for the Assignment. |
string |
None. |
AssignmentTypeId |
The application identifier of the Assignment Type for the Assignment. |
globally unique identifier |
None. |
PossiblePoints |
The possible points for the Assignment. |
integer |
None. |
ScoreMultiplier |
The score multiplier for the Assignment. |
decimal number |
None. |
IncludeInAverage |
The indicator for whether the Assignment's score is included for calculating Student Section Grades. |
boolean |
None. |
AssignedDate |
The assigned date for the Assignment. |
date |
None. |
DueDate |
The due date for the Assignment. |
date |
None. |
ReturnResult | boolean |
None. |
Request Formats
application/json, text/json
{}
application/xml, text/xml
<AssignmentUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MAS.WebApi.v1"> <AssignedDate>2025-04-25T23:08:48.4218393-05:00</AssignedDate> <AssignmentTypeId>8852654b-3c74-40b5-b6bc-d12bb146e72a</AssignmentTypeId> <Description>sample string 2</Description> <DueDate>2025-04-25T23:08:48.4218393-05:00</DueDate> <IncludeInAverage>true</IncludeInAverage> <PossiblePoints>1</PossiblePoints> <ScoreMultiplier>1</ScoreMultiplier> <Title>sample string 1</Title> </AssignmentUpdate>
application/x-www-form-urlencoded
Title=valueForTitle&Description=valueForDescription&AssignmentTypeId=valueForAssignmentTypeId&PossiblePoints=valueForPossiblePoints&ScoreMultiplier=valueForScoreMultiplier&IncludeInAverage=valueForIncludeInAverage&AssignedDate=valueForAssignedDate&DueDate=valueForDueDate&ReturnResult=valueForReturnResult
Response Information
Resource Description
If POST/PUT/DELETE is successful, an empty response is returned. Otherwise the response message will provide details of why the POST/PUT/DELETE was unsuccessful.
Response Formats
application/json, text/json
---Security Exception--- { "ExceptionType": "Security", "Message": Information related to failed authentication or permissions, "Reference": A unique identifier for the exception log entry used for support purposes } ---Business Rule Exception--- { "BrokenRules": [ { "ObjectFor": The type of object with the business rule exception, "IDFor": The identifier for the object with the business rule exception, "Rule": The description of the business rule exception } ], "ExceptionType": "Broken Rules", "Message": Information related to the exception, "Reference": A unique identifier for the exception log entry used for support purposes } ---Other Exception--- { "ExceptionType": The type of exception, "Message": Information related to the exception, "Reference": A unique identifier for the exception log entry used for support purposes }
application/xml, text/xml
---Security Exception--- <Exception Reference="[A unique identifier for the exception log entry used for support purposes]" ExceptionType="Security"> Information related to failed authentication or permissions </Exception> ---Business Rule Exception--- <BrokenRulesMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Message>Information related to the exception</Message> <Reference>A unique identifier for the exception log entry used for support purposes</Reference> <ExceptionType>Broken Rules</ExceptionType> <BrokenRules> <ApiBrokenRule> <ObjectFor>The type of object with the business rule exception</ObjectFor> <IDFor>The identifier for the object with the business rule exception</IDFor> <Rule>The description of the business rule exception</Rule> </ApiBrokenRule> </BrokenRules> </BrokenRulesMessage> ---Other Exception--- <Exception Reference="[A unique identifier for the exception log entry used for support purposes]" ExceptionType="[The type of exception]"> Information related to the exception </Exception>