POST api/StudyMeansManage/UpdateMeans

Request Information

URI Parameters

None.

Body Parameters

SaveMeansInputDto
NameDescriptionTypeAdditional information
id

integer

None.

title

string

None.

type

string

None.

means

string

None.

classification

string

None.

video_cover

string

None.

meansDetails

Collection of MeansDetailsDto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "type": "sample string 3",
  "means": "sample string 4",
  "classification": "sample string 5",
  "video_cover": "sample string 6",
  "meansDetails": [
    {
      "id": 1,
      "file_type": "sample string 2",
      "file_url": "sample string 3",
      "file_name": "sample string 4",
      "file_size": "sample string 5"
    },
    {
      "id": 1,
      "file_type": "sample string 2",
      "file_url": "sample string 3",
      "file_name": "sample string 4",
      "file_size": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<SaveMeansInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel">
  <classification>sample string 5</classification>
  <id>1</id>
  <means>sample string 4</means>
  <meansDetails>
    <MeansDetailsDto>
      <file_name>sample string 4</file_name>
      <file_size>sample string 5</file_size>
      <file_type>sample string 2</file_type>
      <file_url>sample string 3</file_url>
      <id>1</id>
    </MeansDetailsDto>
    <MeansDetailsDto>
      <file_name>sample string 4</file_name>
      <file_size>sample string 5</file_size>
      <file_type>sample string 2</file_type>
      <file_url>sample string 3</file_url>
      <id>1</id>
    </MeansDetailsDto>
  </meansDetails>
  <title>sample string 2</title>
  <type>sample string 3</type>
  <video_cover>sample string 6</video_cover>
</SaveMeansInputDto>

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>