POST api/Subject/AddSubject
Request Information
URI Parameters
None.
Body Parameters
SubjectName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CourseId | integer |
None. |
|
ClassId | integer |
None. |
|
SectionId | integer |
None. |
|
Title | string |
None. |
|
SubjectTypeId | integer |
None. |
|
SubjectType | string |
None. |
|
Marks | string |
None. |
|
SubjectCode | string |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | date |
None. |
|
UpdatedBy | string |
None. |
|
UpdatedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "CourseId": 2, "ClassId": 3, "SectionId": 4, "Title": "sample string 5", "SubjectTypeId": 6, "SubjectType": "sample string 7", "Marks": "sample string 8", "SubjectCode": "sample string 9", "CreatedBy": "sample string 10", "CreatedDate": "2024-12-01T09:31:44.2506391+05:30", "UpdatedBy": "sample string 12", "UpdatedDate": "2024-12-01T09:31:44.2506391+05:30" }
application/octet-stream
Sample:
{"$id":"1","Id":1,"CourseId":2,"ClassId":3,"SectionId":4,"Title":"sample string 5","SubjectTypeId":6,"SubjectType":"sample string 7","Marks":"sample string 8","SubjectCode":"sample string 9","CreatedBy":"sample string 10","CreatedDate":"2024-12-01T09:31:44.2506391+05:30","UpdatedBy":"sample string 12","UpdatedDate":"2024-12-01T09:31:44.2506391+05:30"}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/octet-stream
Sample:
Sample not available.