POST api/CancellationReasons/Add
Request Information
URI Parameters
None.
Body Parameters
CancellationReasonBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
String length: inclusive between 0 and 125 |
|
| CancellationReasonType | CancellationReasonType |
None. |
|
| Order | integer |
Range: inclusive between 0 and 32767 |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"CancellationReasonType": 0,
"Order": 2
}
application/xml, text/xml
Sample:
<CancellationReasonBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <CancellationReasonType>Travel_agent</CancellationReasonType> <Name>sample string 1</Name> <Order>2</Order> </CancellationReasonBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CancellationReasonViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| CancellationReasonType | string |
None. |
|
| Order | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"CancellationReasonType": "sample string 3",
"Order": 4
}
application/xml, text/xml
Sample:
<CancellationReasonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <CancellationReasonType>sample string 3</CancellationReasonType> <Id>1</Id> <Name>sample string 2</Name> <Order>4</Order> </CancellationReasonViewModel>