POST api/AssignmentScores
Creates a new Assignment Score.
Request Information
URI Parameters
None.
Body Parameters
AssignmentScoreCreate| Name | Description | Type | Additional information |
|---|---|---|---|
| StudentId |
The application identifier of the Student for the Assignment Score. |
globally unique identifier |
Required |
| SectionId |
The application identifier of the Section for the Assignment Score. |
globally unique identifier |
Required |
| AssignmentId |
The application identifier of the Assignment for the Assignment Score. |
globally unique identifier |
Required |
| Score |
The score to record for the Assignment Score. The score value must be numeric, 'I', or 'N/A'. A value of 'I' indicates the Assignment Score is Incomplete. A value of 'N/A' unassigns the Assignment from the Student. |
string |
Required |
| Comment |
The comment to record for the Assignment Score. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"StudentId": "e8484aec-8641-4098-ad5b-58a8429829a8",
"SectionId": "1d7d0728-3c8d-45d5-beed-826c2c736b8b",
"AssignmentId": "4885ebef-1eeb-4132-9f77-8bdc46e9ffcf",
"Score": "sample string 4",
"Comment": "sample string 5"
}
application/xml, text/xml
Sample:
<AssignmentScoreCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MAS.WebApi.v1"> <AssignmentId>4885ebef-1eeb-4132-9f77-8bdc46e9ffcf</AssignmentId> <Comment>sample string 5</Comment> <Score>sample string 4</Score> <SectionId>1d7d0728-3c8d-45d5-beed-826c2c736b8b</SectionId> <StudentId>e8484aec-8641-4098-ad5b-58a8429829a8</StudentId> </AssignmentScoreCreate>
application/x-www-form-urlencoded
Sample:
StudentId=valueForStudentId&SectionId=valueForSectionId&AssignmentId=valueForAssignmentId&Score=valueForScore&Comment=valueForComment&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>