POST api/Sections/{SectionId}/Assignments

Creates a new Assignment for a Section's Lesson Plan. If the Section is part of a Section Group, the Assignment will not automatically be included for other Sections in the Section Group. To add an existing Assignment to other Sections in the Section Group use the PUT method.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SectionId

The application identifier for the Section

globally unique identifier

Required

Body Parameters

AssignmentCreate
NameDescriptionTypeAdditional information
LessonPlanId

The application identifier of the Lesson Plan for the Assignment.

globally unique identifier

Required

Title

The title for the Assignment.

string

Required

Description

The description for the Assignment.

string

Required

AssignmentTypeId

The application identifier of the Assignment Type for the Assignment.

globally unique identifier

Required

PossiblePoints

The possible points for the Assignment.

integer

Required

ScoreMultiplier

The score multiplier for the Assignment.

decimal number

Required

IncludeInAverage

The indicator for whether the Assignment's score is included for calculating Student Section Grades.

boolean

Required

AssignedDate

The assigned date for the Assignment.

date

Required

DueDate

The due date for the Assignment.

date

Required

Request Formats

application/json, text/json

Sample:
{
  "LessonPlanId": "86f2fadd-8607-4aec-83b0-8675686c3dd6",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "AssignmentTypeId": "d31fe358-aea3-4f60-ae90-1b921aa30361",
  "PossiblePoints": 5,
  "ScoreMultiplier": 6.0,
  "IncludeInAverage": true,
  "AssignedDate": "2025-04-25T23:15:01.7392537-05:00",
  "DueDate": "2025-04-25T23:15:01.7392537-05:00"
}

application/xml, text/xml

Sample:
<AssignmentCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MAS.WebApi.v1">
  <AssignedDate>2025-04-25T23:15:01.7392537-05:00</AssignedDate>
  <AssignmentTypeId>d31fe358-aea3-4f60-ae90-1b921aa30361</AssignmentTypeId>
  <Description>sample string 3</Description>
  <DueDate>2025-04-25T23:15:01.7392537-05:00</DueDate>
  <IncludeInAverage>true</IncludeInAverage>
  <LessonPlanId>86f2fadd-8607-4aec-83b0-8675686c3dd6</LessonPlanId>
  <PossiblePoints>5</PossiblePoints>
  <ScoreMultiplier>6</ScoreMultiplier>
  <Title>sample string 2</Title>
</AssignmentCreate>

application/x-www-form-urlencoded

Sample:
LessonPlanId=valueForLessonPlanId&Title=valueForTitle&Description=valueForDescription&AssignmentTypeId=valueForAssignmentTypeId&PossiblePoints=valueForPossiblePoints&ScoreMultiplier=valueForScoreMultiplier&IncludeInAverage=valueForIncludeInAverage&AssignedDate=valueForAssignedDate&DueDate=valueForDueDate&IsValid=valueForIsValid&BrokenRuleList=valueForBrokenRuleList&BOID=valueForBOID&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

Sample:
---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

Sample:
---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>