POST api/InstructorTopics/Post

Creates a new topic. Either assignment ID or course ID should be specified. The topic is associated with the course (or assignment's course). If assignment is specified, then the topic is associated with the assignment as well.

Request Information

URI Parameters

None.

Body Parameters

PostTopicDto
NameDescriptionTypeAdditional information
CourseId

integer

None.

AssignmentId

integer

None.

Text

string

Required

Request Formats

application/json, text/json

Sample:
{
  "CourseId": 1,
  "AssignmentId": 1,
  "Text": "sample string 1"
}

application/xml, text/xml

Sample:
<PostTopicDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Common.Dtos.CourseNs">
  <AssignmentId>1</AssignmentId>
  <CourseId>1</CourseId>
  <Text>sample string 1</Text>
</PostTopicDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.