POST ContractType/Add
Request Information
URI Parameters
None.
Body Parameters
CONTRACT_TYPE| Name | Description | Type | Additional information |
|---|---|---|---|
| CONTRACT_TYPE_ID | integer |
None. |
|
| CITY | CITY |
None. |
|
| CONTRACT_TYPE_TEXT | string |
None. |
|
| DAY | integer |
None. |
|
| COUNT | integer |
None. |
|
| REFORMER_COUNT | integer |
None. |
|
| PRICE | integer |
None. |
|
| NOTE1 | string |
None. |
|
| NOTE2 | string |
None. |
|
| NOTE3 | string |
None. |
|
| ACTIVE | boolean |
None. |
|
| START_TIME | string |
None. |
|
| END_TIME | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CONTRACT_TYPE_ID": 1,
"CITY": {
"CITY_ID": 1,
"CITY_TEXT": "sample string 2"
},
"CONTRACT_TYPE_TEXT": "sample string 2",
"DAY": 3,
"COUNT": 4,
"REFORMER_COUNT": 5,
"PRICE": 6,
"NOTE1": "sample string 7",
"NOTE2": "sample string 8",
"NOTE3": "sample string 9",
"ACTIVE": true,
"START_TIME": "sample string 11",
"END_TIME": "sample string 12"
}
text/html
Sample:
{"CONTRACT_TYPE_ID":1,"CITY":{"CITY_ID":1,"CITY_TEXT":"sample string 2"},"CONTRACT_TYPE_TEXT":"sample string 2","DAY":3,"COUNT":4,"REFORMER_COUNT":5,"PRICE":6,"NOTE1":"sample string 7","NOTE2":"sample string 8","NOTE3":"sample string 9","ACTIVE":true,"START_TIME":"sample string 11","END_TIME":"sample string 12"}
application/xml, text/xml
Sample:
<CONTRACT_TYPE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bnfBLL.SYSTEM">
<ACTIVE>true</ACTIVE>
<CITY>
<CITY_ID>1</CITY_ID>
<CITY_TEXT>sample string 2</CITY_TEXT>
</CITY>
<CONTRACT_TYPE_ID>1</CONTRACT_TYPE_ID>
<CONTRACT_TYPE_TEXT>sample string 2</CONTRACT_TYPE_TEXT>
<COUNT>4</COUNT>
<DAY>3</DAY>
<END_TIME>sample string 12</END_TIME>
<NOTE1>sample string 7</NOTE1>
<NOTE2>sample string 8</NOTE2>
<NOTE3>sample string 9</NOTE3>
<PRICE>6</PRICE>
<REFORMER_COUNT>5</REFORMER_COUNT>
<START_TIME>sample string 11</START_TIME>
</CONTRACT_TYPE>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProcessResult| Name | Description | Type | Additional information |
|---|---|---|---|
| m_sClass | string |
None. |
|
| m_sMethod | string |
None. |
|
| m_iLastId | integer |
None. |
|
| m_cDataTable | DataTable |
None. |
|
| m_lUserMessageList | Collection of string |
None. |
|
| m_sErrorMessage | string |
None. |
|
| m_cException | Exception |
None. |
|
| m_eProcessState | ProcessState |
None. |
Response Formats
application/json, text/json
Sample:
{
"m_eProcessState": 0,
"m_sClass": "sample string 1",
"m_sMethod": "sample string 2",
"m_iLastId": 3,
"m_cDataTable": null,
"m_lUserMessageList": [
"sample string 1",
"sample string 2"
],
"m_sErrorMessage": "sample string 4",
"m_cException": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}
text/html
Sample:
{"m_eProcessState":0,"m_sClass":"sample string 1","m_sMethod":"sample string 2","m_iLastId":3,"m_cDataTable":null,"m_lUserMessageList":["sample string 1","sample string 2"],"m_sErrorMessage":"sample string 4","m_cException":{"ClassName":"System.Exception","Message":null,"Data":null,"InnerException":null,"HelpURL":"sample string 1","StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":3,"Source":"sample string 2","WatsonBuckets":null}}
application/xml, text/xml
Sample:
<ProcessResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bnfOBJ">
<m_cDataTable i:nil="true" />
<m_cException xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</m_cException>
<m_eProcessState>SystemException</m_eProcessState>
<m_iLastId>3</m_iLastId>
<m_lUserMessageList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</m_lUserMessageList>
<m_sClass>sample string 1</m_sClass>
<m_sErrorMessage>sample string 4</m_sErrorMessage>
<m_sMethod>sample string 2</m_sMethod>
</ProcessResult>