POST api/CancellationReason

Request Information

URI Parameters

None.

Body Parameters

CancellationReason
NameDescriptionTypeAdditional information
RecordNo

integer

None.

CancellationReasonName

string

None.

IsOrgnizationPlan

boolean

None.

IsUserPlan

boolean

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "CancellationReasonName": "sample string 2",
  "IsOrgnizationPlan": true,
  "IsUserPlan": true,
  "CreatedOn": "2024-12-22T23:58:45.2124807+00:00",
  "UpdatedOn": "2024-12-22T23:58:45.2124807+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<CancellationReason xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models">
  <CancellationReasonName>sample string 2</CancellationReasonName>
  <CreatedOn>2024-12-22T23:58:45.2124807+00:00</CreatedOn>
  <IsDeleted>true</IsDeleted>
  <IsOrgnizationPlan>true</IsOrgnizationPlan>
  <IsUserPlan>true</IsUserPlan>
  <RecordNo>1</RecordNo>
  <UpdatedOn>2024-12-22T23:58:45.2124807+00:00</UpdatedOn>
</CancellationReason>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.