POST api/admin/saveprogramvideo

Request Information

URI Parameters

None.

Body Parameters

ProgramVideoModel
NameDescriptionTypeAdditional information
ProgramVideoID

integer

None.

ProgramID

integer

None.

ProgramID1

integer

None.

ProgramID2

integer

None.

EmbedCode

string

None.

Title

string

None.

Author

string

None.

Description

string

None.

VideoDate

date

None.

PostDate

date

None.

AllowComments

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProgramVideoID": 1,
  "ProgramID": 2,
  "ProgramID1": 1,
  "ProgramID2": 1,
  "EmbedCode": "sample string 3",
  "Title": "sample string 4",
  "Author": "sample string 5",
  "Description": "sample string 6",
  "VideoDate": "2021-04-19T20:14:06.2083326-04:00",
  "PostDate": "2021-04-19T20:14:06.2083326-04:00",
  "AllowComments": true
}

application/xml, text/xml

Sample:
<ProgramVideoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <AllowComments>true</AllowComments>
  <Author>sample string 5</Author>
  <Description>sample string 6</Description>
  <EmbedCode>sample string 3</EmbedCode>
  <PostDate>2021-04-19T20:14:06.2083326-04:00</PostDate>
  <ProgramID>2</ProgramID>
  <ProgramID1>1</ProgramID1>
  <ProgramID2>1</ProgramID2>
  <ProgramVideoID>1</ProgramVideoID>
  <Title>sample string 4</Title>
  <VideoDate>2021-04-19T20:14:06.2083326-04:00</VideoDate>
</ProgramVideoModel>

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 'ProgramVideoModel'.

Response Information

Resource Description

PostResultModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<PostResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccess>true</IsSuccess>
</PostResultModel>