DELETE api/buildings/{buildingId}/builders/{builderId}
Delete a builder
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
buildingId |
Building Id |
integer |
Required |
builderId |
Builder Id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BuilderViewModelName | Description | Type | Additional information |
---|---|---|---|
BuilderId |
BuilderId |
integer |
None. |
BuildingId |
BuildingId |
integer |
None. |
InUse |
Builder is in use by Unit or other instance |
boolean |
None. |
Address |
Address |
AddressViewModel |
None. |
BuilderCode |
BuilderCode |
string |
Required Matching regular expression pattern: ^[a-zA-Z0-9]{4}$ |
BuilderName |
BuilderName |
string |
Required Matching regular expression pattern: ^[a-zA-Z0-9' ']*$ Max length: 50 |
ContactName |
ContactName |
string |
Required Matching regular expression pattern: ^[a-zA-Z' ']*$ Max length: 50 |
PhoneNumber |
PhoneNumber |
string |
Matching regular expression pattern: (^$)|(^\d{3}-\d{3}-\d{4}) |
Response Formats
application/json, text/json
{ "builderId": 1, "buildingId": 2, "inUse": true, "address": { "addressId": 1, "address1": "sample string 2", "address2": "sample string 3", "city": "sample string 4", "state": "sample string 5", "zipCode": "sample string 6", "country": "sample string 7" }, "builderCode": "sample string 4", "builderName": "sample string 5", "contactName": "sample string 6", "phoneNumber": "sample string 7" }
application/xml, text/xml
<BuilderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <BuilderCode>sample string 4</BuilderCode> <BuilderName>sample string 5</BuilderName> <ContactName>sample string 6</ContactName> <PhoneNumber>sample string 7</PhoneNumber> <Address> <Address1 xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 2</Address1> <Address2 xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 3</Address2> <City xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 4</City> <Country xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 7</Country> <State xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 5</State> <ZipCode xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 6</ZipCode> <AddressId>1</AddressId> </Address> <BuilderId>1</BuilderId> <BuildingId>2</BuildingId> <InUse>true</InUse> </BuilderViewModel>