POST api/StudyHub2/SaveQuestionAndAnswer
Request Information
URI Parameters
None.
Body Parameters
QuestionOrAnswers| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Description | string |
None. |
|
| PeriodId | integer |
None. |
|
| SubjectId | integer |
None. |
|
| SubjectName | string |
None. |
|
| UserName | string |
None. |
|
| UserType | string |
None. |
|
| FromUser | integer |
None. |
|
| ToUser | integer |
None. |
|
| ParentId |
response To |
integer |
None. |
| CreatedDate | date |
None. |
|
| ModifiedDate | date |
None. |
|
| DateAndTimeText | string |
None. |
|
| RegistrationId | integer |
None. |
|
| QuestionClosed | boolean |
None. |
|
| UploadedFile | HttpPostedFileBase |
None. |
|
| Attachementfile | string |
None. |
|
| Attachementfilenameextension | string |
None. |
|
| ProfilePicture | string |
None. |
|
| PostReplies | Collection of QuestionOrAnswers |
None. |
|
| lstAttachments | Collection of SelectListItem |
None. |
|
| SubjectType |
Gets or sets the subject type, i.e scheduled subjects or course material subjects |
string |
None. |
| CourseMaterialTypeShortCode |
Gets or sets the course material type short code |
string |
None. |
| IsQuestionToInstrcutorAllowed | boolean |
None. |
|
| IsDiscussionForumAllowed | boolean |
None. |
|
| CourseDisciplineId | integer |
None. |
|
| StudentEnrollmentId | integer |
None. |
|
| FollowUpCount | integer |
None. |
|
| PeriodDescription | string |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Info | ReturnResult |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Info": {
"Status": true,
"Message": "sample string 2",
"AdditionalData": {},
"ObjAppResponseMessage": {
"Status": true,
"Message": "sample string 2",
"AdditionalData": "sample string 3"
}
},
"Data": {}
}