POST api/subject/UpdateDocument?oldsubID={oldsubID}&newsubID={newsubID}&key={key}

Upload lai tai lieu, thong bao

Request Information

URI Parameters

NameDescriptionTypeAdditional information
oldsubID

integer

Required

newsubID

integer

Required

key

keu de kiem tra checksum

integer

Required

Body Parameters

tai lieu hoac thong bao

DocumentModel2
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

None.

Description

string

None.

FileAttach

string

None.

TeacherID

string

None.

Type

integer

None.

Stop

boolean

None.

CreatedByUser

string

None.

CreateDate

date

None.

Year

string

None.

Semester

integer

None.

Link

string

None.

NameDownload

string

None.

BeginDate

date

None.

IDLink

integer

None.

IDCourse

integer

None.

NameDownloadFile

string

None.

MaHPKhoa

string

None.

ChecksumParam

ChecksumParamModel

None.

isChangeFile

boolean

None.

readOnly

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "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-13T18:09:23.866168+07:00",
  "year": "sample string 10",
  "semester": 11,
  "link": "sample string 12",
  "nameDownload": "sample string 13",
  "beginDate": "2024-12-13T18:09:23.866168+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,"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-13T18:09:23.866168+07:00","year":"sample string 10","semester":11,"link":"sample string 12","nameDownload":"sample string 13","beginDate":"2024-12-13T18:09:23.866168+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:
<DocumentModel2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.ViewModel">
  <BeginDate>2024-12-13T18:09:23.866168+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-13T18:09:23.866168+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>

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.