POST api/InstructorAssignments/Post
Creates a new assignment and returns it's DTO.
Request Information
URI Parameters
None.
Body Parameters
PostAssignmentDto| Name | Description | Type | Additional information |
|---|---|---|---|
| SectionId | integer |
Required |
|
| Title | string |
Required |
|
| Type | integer |
Required |
|
| StartTime | integer |
Required |
|
| EndTime | integer |
Required |
|
| DueTime | integer |
Required |
|
| Importance | integer |
Required Range: inclusive between 1 and 10 |
|
| TopicIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SectionId": 1,
"Title": "sample string 2",
"Type": 3,
"StartTime": 4,
"EndTime": 5,
"DueTime": 6,
"Importance": 7,
"TopicIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<PostAssignmentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Common.Dtos.CourseNs">
<DueTime>6</DueTime>
<EndTime>5</EndTime>
<Importance>7</Importance>
<SectionId>1</SectionId>
<StartTime>4</StartTime>
<Title>sample string 2</Title>
<TopicIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</TopicIds>
<Type>3</Type>
</PostAssignmentDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |