POST api/Contractor/AddContractor
Request Information
URI Parameters
None.
Body Parameters
Contractor| Name | Description | Type | Additional information |
|---|---|---|---|
| ContractorId | integer |
None. |
|
| CompId | integer |
None. |
|
| BranchId | integer |
None. |
|
| ContractorName | string |
None. |
|
| ContractorAddress1 | string |
None. |
|
| ContractorContactNo | string |
None. |
|
| CreatedBy | integer |
None. |
|
| Notes | string |
None. |
|
| MachineIP | string |
None. |
|
| OperationType | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContractorId": 1,
"CompId": 2,
"BranchId": 3,
"ContractorName": "sample string 4",
"ContractorAddress1": "sample string 5",
"ContractorContactNo": "sample string 6",
"CreatedBy": 7,
"Notes": "sample string 8",
"MachineIP": "sample string 9",
"OperationType": "sample string 10"
}
application/xml, text/xml
Sample:
<Contractor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/INTEGRAFFAPI.Models"> <BranchId>3</BranchId> <CompId>2</CompId> <ContractorAddress1>sample string 5</ContractorAddress1> <ContractorContactNo>sample string 6</ContractorContactNo> <ContractorId>1</ContractorId> <ContractorName>sample string 4</ContractorName> <CreatedBy>7</CreatedBy> <MachineIP>sample string 9</MachineIP> <Notes>sample string 8</Notes> <OperationType>sample string 10</OperationType> </Contractor>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |