PUT api/Class/UpdateClass

Request Information

URI Parameters

None.

Body Parameters

Class
NameDescriptionTypeAdditional information
ClassId

integer

None.

ClassName

string

None.

Course

Course

None.

Request Formats

application/json, text/json

Sample:
{
  "ClassId": 1,
  "ClassName": "sample string 2",
  "Course": {
    "$id": "2",
    "CourseId": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "CourseType": "sample string 4",
    "Fees": "sample string 5",
    "CreatedBy": "sample string 6",
    "CreatedDate": "sample string 7",
    "UpdatedBy": "sample string 8",
    "UpdatedDate": "sample string 9"
  }
}

application/octet-stream

Sample:
{"$id":"1","ClassId":1,"ClassName":"sample string 2","Course":{"$id":"2","CourseId":1,"Name":"sample string 2","Description":"sample string 3","CourseType":"sample string 4","Fees":"sample string 5","CreatedBy":"sample string 6","CreatedDate":"sample string 7","UpdatedBy":"sample string 8","UpdatedDate":"sample string 9"}}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Class'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.