POST contracts/addcancelsubreasons

Request Information

URI Parameters

None.

Body Parameters

CancelSubReasonEntity
NameDescriptionTypeAdditional information
TenantId

integer

None.

ReasonId

integer

None.

SubReasonId

integer

None.

Reason

string

None.

SubReason

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TenantId": 1,
  "ReasonId": 2,
  "SubReasonId": 3,
  "Reason": "sample string 4",
  "SubReason": "sample string 5",
  "Active": true
}

text/html

Sample:
{"TenantId":1,"ReasonId":2,"SubReasonId":3,"Reason":"sample string 4","SubReason":"sample string 5","Active":true}

application/xml, text/xml

Sample:
<CancelSubReasonEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Contracts">
  <Active>true</Active>
  <Reason>sample string 4</Reason>
  <ReasonId>2</ReasonId>
  <SubReason>sample string 5</SubReason>
  <SubReasonId>3</SubReasonId>
  <TenantId>1</TenantId>
</CancelSubReasonEntity>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.