POST api/Plan

Request Information

URI Parameters

None.

Body Parameters

Plan
NameDescriptionTypeAdditional information
RecordNo

integer

None.

PlanName

string

None.

Cost

decimal number

None.

Period

integer

None.

Description

string

None.

Discount

decimal number

None.

MarkerFees

decimal number

None.

LeadMarkerFees

decimal number

None.

SortOrder

integer

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "PlanName": "sample string 2",
  "Cost": 3.0,
  "Period": 4,
  "Description": "sample string 5",
  "Discount": 6.0,
  "MarkerFees": 7.0,
  "LeadMarkerFees": 8.0,
  "SortOrder": 9,
  "CreatedOn": "2021-07-28T16:01:50.751167+00:00",
  "UpdatedOn": "2021-07-28T16:01:50.751167+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<Plan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models">
  <Cost>3</Cost>
  <CreatedOn>2021-07-28T16:01:50.751167+00:00</CreatedOn>
  <Description>sample string 5</Description>
  <Discount>6</Discount>
  <IsDeleted>true</IsDeleted>
  <LeadMarkerFees>8</LeadMarkerFees>
  <MarkerFees>7</MarkerFees>
  <Period>4</Period>
  <PlanName>sample string 2</PlanName>
  <RecordNo>1</RecordNo>
  <SortOrder>9</SortOrder>
  <UpdatedOn>2021-07-28T16:01:50.751167+00:00</UpdatedOn>
</Plan>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.