POST api/AssignmentTypes

Creates a new Assignment Type.

Request Information

URI Parameters

None.

Body Parameters

AssignmentTypeCreate
NameDescriptionTypeAdditional information
SectionId

The application identifier of the Section for the Assignment Type. The Assignment Type will be added to the Section's Section Group.

globally unique identifier

Required

Description

The description for the Assignment Type.

string

Required

Weight

The weight for the Assignment Type.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SectionId": "e3332424-5e8c-4e1c-8dc5-42fd7a1b7fe6",
  "Description": "sample string 2",
  "Weight": "sample string 3"
}

application/xml, text/xml

Sample:
<AssignmentTypeCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MAS.WebApi.v1">
  <Description>sample string 2</Description>
  <SectionId>e3332424-5e8c-4e1c-8dc5-42fd7a1b7fe6</SectionId>
  <Weight>sample string 3</Weight>
</AssignmentTypeCreate>

application/x-www-form-urlencoded

Sample:
SectionId=valueForSectionId&Description=valueForDescription&Weight=valueForWeight&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>