POST api/VideoManager/EditManagerVideo

Request Information

URI Parameters

None.

Body Parameters

UploadVideoDto
NameDescriptionTypeAdditional information
id

integer

None.

course_name

string

None.

classify_name

string

None.

course_desc

string

None.

video_cover

string

None.

user_id

Collection of integer

None.

deptList

Collection of DeptTpye

None.

mode_type

integer

None.

chapterList

Collection of UploadVideoChapterDto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "course_name": "sample string 2",
  "classify_name": "sample string 3",
  "course_desc": "sample string 4",
  "video_cover": "sample string 5",
  "user_id": [
    1,
    2
  ],
  "deptList": [
    {
      "dept_id": 1,
      "staff_type": 2
    },
    {
      "dept_id": 1,
      "staff_type": 2
    }
  ],
  "mode_type": 1,
  "chapterList": [
    {
      "id": 1,
      "chapter_name": "sample string 2",
      "chapter_title": "sample string 3",
      "chapter_url": "sample string 4",
      "chapter_length": 5
    },
    {
      "id": 1,
      "chapter_name": "sample string 2",
      "chapter_title": "sample string 3",
      "chapter_url": "sample string 4",
      "chapter_length": 5
    }
  ]
}

application/xml, text/xml

Sample:
<UploadVideoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel">
  <chapterList>
    <UploadVideoChapterDto>
      <chapter_length>5</chapter_length>
      <chapter_name>sample string 2</chapter_name>
      <chapter_title>sample string 3</chapter_title>
      <chapter_url>sample string 4</chapter_url>
      <id>1</id>
    </UploadVideoChapterDto>
    <UploadVideoChapterDto>
      <chapter_length>5</chapter_length>
      <chapter_name>sample string 2</chapter_name>
      <chapter_title>sample string 3</chapter_title>
      <chapter_url>sample string 4</chapter_url>
      <id>1</id>
    </UploadVideoChapterDto>
  </chapterList>
  <classify_name>sample string 3</classify_name>
  <course_desc>sample string 4</course_desc>
  <course_name>sample string 2</course_name>
  <deptList>
    <DeptTpye>
      <dept_id>1</dept_id>
      <staff_type>2</staff_type>
    </DeptTpye>
    <DeptTpye>
      <dept_id>1</dept_id>
      <staff_type>2</staff_type>
    </DeptTpye>
  </deptList>
  <id>1</id>
  <mode_type>1</mode_type>
  <user_id xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </user_id>
  <video_cover>sample string 5</video_cover>
</UploadVideoDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
msg

string

None.

code

integer

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "msg": "sample string 1",
  "code": 2,
  "total": 3
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI">
  <code>2</code>
  <msg>sample string 1</msg>
  <total>3</total>
</BaseResponse>