POST api/admin/saveprogram

Request Information

URI Parameters

None.

Body Parameters

ProgramModel
NameDescriptionTypeAdditional information
ProgramID

integer

None.

ProgramName

string

None.

Description

string

None.

DateCreated

date

None.

IsPublic

boolean

None.

PageURL

string

None.

ActivationEmailTemplate

string

None.

PriceEuro

decimal number

None.

PriceUsd

decimal number

None.

PriceHryvna

decimal number

None.

PriceRub

decimal number

None.

PaypalButtonID

string

None.

SandboxPaypalButtonID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProgramID": 1,
  "ProgramName": "sample string 2",
  "Description": "sample string 3",
  "DateCreated": "2021-04-19T21:21:21.9702376-04:00",
  "IsPublic": true,
  "PageURL": "sample string 4",
  "ActivationEmailTemplate": "sample string 5",
  "PriceEuro": 1.0,
  "PriceUsd": 1.0,
  "PriceHryvna": 1.0,
  "PriceRub": 1.0,
  "PaypalButtonID": "sample string 6",
  "SandboxPaypalButtonID": "sample string 7"
}

application/xml, text/xml

Sample:
<ProgramModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <ActivationEmailTemplate>sample string 5</ActivationEmailTemplate>
  <DateCreated>2021-04-19T21:21:21.9702376-04:00</DateCreated>
  <Description>sample string 3</Description>
  <IsPublic>true</IsPublic>
  <PageURL>sample string 4</PageURL>
  <PaypalButtonID>sample string 6</PaypalButtonID>
  <PriceEuro>1</PriceEuro>
  <PriceHryvna>1</PriceHryvna>
  <PriceRub>1</PriceRub>
  <PriceUsd>1</PriceUsd>
  <ProgramID>1</ProgramID>
  <ProgramName>sample string 2</ProgramName>
  <SandboxPaypalButtonID>sample string 7</SandboxPaypalButtonID>
</ProgramModel>

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

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>