PUT api/course/Update

Cập nhật học phần

Request Information

URI Parameters

None.

Body Parameters

CourseModel
NameDescriptionTypeAdditional information
ID

integer

None.

Year

string

None.

Semester

integer

None.

SubjectCode

string

None.

IDGroup

integer

None.

Stop

boolean

None.

CreateDate

date

None.

CreateByUser

string

None.

UpdateDate

date

None.

UpdateByUser

string

None.

GradeName

string

None.

NumberAttendees

integer

None.

Descriptions

string

None.

TeacherID

string

None.

ScoreMedium

decimal number

None.

GroupID

string

None.

CourseGroupID

integer

None.

Teached_name

string

None.

Teached_idNV

Collection of string

None.

SubjectName

string

None.

Credits

integer

None.

CheckImport

boolean

None.

Checksum

string

None.

Syllabus

DocumentModel2

None.

NameCouseFull

string

None.

DisplayNameMenu

string

None.

DisplayNameFull

string

None.

MaHPKhoa

string

None.

dsSyllabus

Collection of DocumentModel2

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "year": "sample string 2",
  "semester": 3,
  "subjectCode": "sample string 4",
  "idGroup": 5,
  "stop": true,
  "createDate": "2024-12-04T12:11:20.7207207+07:00",
  "createByUser": "sample string 7",
  "updateDate": "2024-12-04T12:11:20.7207207+07:00",
  "updateByUser": "sample string 8",
  "gradeName": "sample string 9",
  "numberAttendees": 1,
  "descriptions": "sample string 10",
  "teacherID": "sample string 11",
  "scoreMedium": 12.1,
  "groupID": "sample string 13",
  "courseGroupID": 14,
  "teached_name": "sample string 15",
  "teached_idNV": [
    "sample string 1",
    "sample string 2"
  ],
  "subjectName": "sample string 16",
  "credits": 17,
  "checkImport": true,
  "checksum": "sample string 19",
  "syllabus": {
    "id": 1,
    "title": "sample string 2",
    "description": "sample string 3",
    "fileAttach": "sample string 4",
    "teacherID": "sample string 5",
    "type": 6,
    "stop": true,
    "createdByUser": "sample string 8",
    "createDate": "2024-12-04T12:11:20.7207207+07:00",
    "year": "sample string 10",
    "semester": 11,
    "link": "sample string 12",
    "nameDownload": "sample string 13",
    "beginDate": "2024-12-04T12:11:20.7207207+07:00",
    "idLink": 1,
    "idCourse": 14,
    "nameDownloadFile": "sample string 15",
    "maHPKhoa": "sample string 16",
    "checksumParam": {
      "checksumEdit": "sample string 1",
      "checksumDelete": "sample string 2",
      "checksumRequest": "sample string 3",
      "checksumRequest2": "sample string 4"
    },
    "isChangeFile": true,
    "readOnly": true
  },
  "nameCouseFull": "sample string 20",
  "displayNameMenu": "sample string 21",
  "displayNameFull": "sample string 22",
  "maHPKhoa": "sample string 23",
  "dsSyllabus": [
    {
      "id": 1,
      "title": "sample string 2",
      "description": "sample string 3",
      "fileAttach": "sample string 4",
      "teacherID": "sample string 5",
      "type": 6,
      "stop": true,
      "createdByUser": "sample string 8",
      "createDate": "2024-12-04T12:11:20.7207207+07:00",
      "year": "sample string 10",
      "semester": 11,
      "link": "sample string 12",
      "nameDownload": "sample string 13",
      "beginDate": "2024-12-04T12:11:20.7207207+07:00",
      "idLink": 1,
      "idCourse": 14,
      "nameDownloadFile": "sample string 15",
      "maHPKhoa": "sample string 16",
      "checksumParam": {
        "checksumEdit": "sample string 1",
        "checksumDelete": "sample string 2",
        "checksumRequest": "sample string 3",
        "checksumRequest2": "sample string 4"
      },
      "isChangeFile": true,
      "readOnly": true
    },
    {
      "id": 1,
      "title": "sample string 2",
      "description": "sample string 3",
      "fileAttach": "sample string 4",
      "teacherID": "sample string 5",
      "type": 6,
      "stop": true,
      "createdByUser": "sample string 8",
      "createDate": "2024-12-04T12:11:20.7207207+07:00",
      "year": "sample string 10",
      "semester": 11,
      "link": "sample string 12",
      "nameDownload": "sample string 13",
      "beginDate": "2024-12-04T12:11:20.7207207+07:00",
      "idLink": 1,
      "idCourse": 14,
      "nameDownloadFile": "sample string 15",
      "maHPKhoa": "sample string 16",
      "checksumParam": {
        "checksumEdit": "sample string 1",
        "checksumDelete": "sample string 2",
        "checksumRequest": "sample string 3",
        "checksumRequest2": "sample string 4"
      },
      "isChangeFile": true,
      "readOnly": true
    }
  ]
}

text/html

Sample:
{"id":1,"year":"sample string 2","semester":3,"subjectCode":"sample string 4","idGroup":5,"stop":true,"createDate":"2024-12-04T12:11:20.7207207+07:00","createByUser":"sample string 7","updateDate":"2024-12-04T12:11:20.7207207+07:00","updateByUser":"sample string 8","gradeName":"sample string 9","numberAttendees":1,"descriptions":"sample string 10","teacherID":"sample string 11","scoreMedium":12.1,"groupID":"sample string 13","courseGroupID":14,"teached_name":"sample string 15","teached_idNV":["sample string 1","sample string 2"],"subjectName":"sample string 16","credits":17,"checkImport":true,"checksum":"sample string 19","syllabus":{"id":1,"title":"sample string 2","description":"sample string 3","fileAttach":"sample string 4","teacherID":"sample string 5","type":6,"stop":true,"createdByUser":"sample string 8","createDate":"2024-12-04T12:11:20.7207207+07:00","year":"sample string 10","semester":11,"link":"sample string 12","nameDownload":"sample string 13","beginDate":"2024-12-04T12:11:20.7207207+07:00","idLink":1,"idCourse":14,"nameDownloadFile":"sample string 15","maHPKhoa":"sample string 16","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"},"isChangeFile":true,"readOnly":true},"nameCouseFull":"sample string 20","displayNameMenu":"sample string 21","displayNameFull":"sample string 22","maHPKhoa":"sample string 23","dsSyllabus":[{"id":1,"title":"sample string 2","description":"sample string 3","fileAttach":"sample string 4","teacherID":"sample string 5","type":6,"stop":true,"createdByUser":"sample string 8","createDate":"2024-12-04T12:11:20.7207207+07:00","year":"sample string 10","semester":11,"link":"sample string 12","nameDownload":"sample string 13","beginDate":"2024-12-04T12:11:20.7207207+07:00","idLink":1,"idCourse":14,"nameDownloadFile":"sample string 15","maHPKhoa":"sample string 16","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"},"isChangeFile":true,"readOnly":true},{"id":1,"title":"sample string 2","description":"sample string 3","fileAttach":"sample string 4","teacherID":"sample string 5","type":6,"stop":true,"createdByUser":"sample string 8","createDate":"2024-12-04T12:11:20.7207207+07:00","year":"sample string 10","semester":11,"link":"sample string 12","nameDownload":"sample string 13","beginDate":"2024-12-04T12:11:20.7207207+07:00","idLink":1,"idCourse":14,"nameDownloadFile":"sample string 15","maHPKhoa":"sample string 16","checksumParam":{"checksumEdit":"sample string 1","checksumDelete":"sample string 2","checksumRequest":"sample string 3","checksumRequest2":"sample string 4"},"isChangeFile":true,"readOnly":true}]}

application/xml, text/xml

Sample:
<CourseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel">
  <CheckImport>true</CheckImport>
  <Checksum>sample string 19</Checksum>
  <CourseGroupID>14</CourseGroupID>
  <CreateByUser>sample string 7</CreateByUser>
  <CreateDate>2024-12-04T12:11:20.7207207+07:00</CreateDate>
  <Credits>17</Credits>
  <Descriptions>sample string 10</Descriptions>
  <DisplayNameFull>sample string 22</DisplayNameFull>
  <DisplayNameMenu>sample string 21</DisplayNameMenu>
  <GradeName>sample string 9</GradeName>
  <GroupID>sample string 13</GroupID>
  <ID>1</ID>
  <IDGroup>5</IDGroup>
  <MaHPKhoa>sample string 23</MaHPKhoa>
  <NameCouseFull>sample string 20</NameCouseFull>
  <NumberAttendees>1</NumberAttendees>
  <ScoreMedium>12.1</ScoreMedium>
  <Semester>3</Semester>
  <Stop>true</Stop>
  <SubjectCode>sample string 4</SubjectCode>
  <SubjectName>sample string 16</SubjectName>
  <Syllabus>
    <BeginDate>2024-12-04T12:11:20.7207207+07:00</BeginDate>
    <ChecksumParam>
      <ChecksumDelete>sample string 2</ChecksumDelete>
      <ChecksumEdit>sample string 1</ChecksumEdit>
      <ChecksumRequest>sample string 3</ChecksumRequest>
      <ChecksumRequest2>sample string 4</ChecksumRequest2>
    </ChecksumParam>
    <CreateDate>2024-12-04T12:11:20.7207207+07:00</CreateDate>
    <CreatedByUser>sample string 8</CreatedByUser>
    <Description>sample string 3</Description>
    <FileAttach>sample string 4</FileAttach>
    <ID>1</ID>
    <IDCourse>14</IDCourse>
    <IDLink>1</IDLink>
    <Link>sample string 12</Link>
    <MaHPKhoa>sample string 16</MaHPKhoa>
    <NameDownload>sample string 13</NameDownload>
    <NameDownloadFile>sample string 15</NameDownloadFile>
    <Semester>11</Semester>
    <Stop>true</Stop>
    <TeacherID>sample string 5</TeacherID>
    <Title>sample string 2</Title>
    <Type>6</Type>
    <Year>sample string 10</Year>
    <isChangeFile>true</isChangeFile>
    <readOnly>true</readOnly>
  </Syllabus>
  <Teached_idNV xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Teached_idNV>
  <Teached_name>sample string 15</Teached_name>
  <TeacherID>sample string 11</TeacherID>
  <UpdateByUser>sample string 8</UpdateByUser>
  <UpdateDate>2024-12-04T12:11:20.7207207+07:00</UpdateDate>
  <Year>sample string 2</Year>
  <dsSyllabus>
    <DocumentModel2>
      <BeginDate>2024-12-04T12:11:20.7207207+07:00</BeginDate>
      <ChecksumParam>
        <ChecksumDelete>sample string 2</ChecksumDelete>
        <ChecksumEdit>sample string 1</ChecksumEdit>
        <ChecksumRequest>sample string 3</ChecksumRequest>
        <ChecksumRequest2>sample string 4</ChecksumRequest2>
      </ChecksumParam>
      <CreateDate>2024-12-04T12:11:20.7207207+07:00</CreateDate>
      <CreatedByUser>sample string 8</CreatedByUser>
      <Description>sample string 3</Description>
      <FileAttach>sample string 4</FileAttach>
      <ID>1</ID>
      <IDCourse>14</IDCourse>
      <IDLink>1</IDLink>
      <Link>sample string 12</Link>
      <MaHPKhoa>sample string 16</MaHPKhoa>
      <NameDownload>sample string 13</NameDownload>
      <NameDownloadFile>sample string 15</NameDownloadFile>
      <Semester>11</Semester>
      <Stop>true</Stop>
      <TeacherID>sample string 5</TeacherID>
      <Title>sample string 2</Title>
      <Type>6</Type>
      <Year>sample string 10</Year>
      <isChangeFile>true</isChangeFile>
      <readOnly>true</readOnly>
    </DocumentModel2>
    <DocumentModel2>
      <BeginDate>2024-12-04T12:11:20.7207207+07:00</BeginDate>
      <ChecksumParam>
        <ChecksumDelete>sample string 2</ChecksumDelete>
        <ChecksumEdit>sample string 1</ChecksumEdit>
        <ChecksumRequest>sample string 3</ChecksumRequest>
        <ChecksumRequest2>sample string 4</ChecksumRequest2>
      </ChecksumParam>
      <CreateDate>2024-12-04T12:11:20.7207207+07:00</CreateDate>
      <CreatedByUser>sample string 8</CreatedByUser>
      <Description>sample string 3</Description>
      <FileAttach>sample string 4</FileAttach>
      <ID>1</ID>
      <IDCourse>14</IDCourse>
      <IDLink>1</IDLink>
      <Link>sample string 12</Link>
      <MaHPKhoa>sample string 16</MaHPKhoa>
      <NameDownload>sample string 13</NameDownload>
      <NameDownloadFile>sample string 15</NameDownloadFile>
      <Semester>11</Semester>
      <Stop>true</Stop>
      <TeacherID>sample string 5</TeacherID>
      <Title>sample string 2</Title>
      <Type>6</Type>
      <Year>sample string 10</Year>
      <isChangeFile>true</isChangeFile>
      <readOnly>true</readOnly>
    </DocumentModel2>
  </dsSyllabus>
</CourseModel>

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.