PUT api/buildings/{buildingId}/copychanges

Updating a Building and copy changes to buildings

Request Information

URI Parameters

NameDescriptionTypeAdditional information
buildingId

integer

Required

Body Parameters

BuildingUpdateAndCopyViewModel
NameDescriptionTypeAdditional information
BuildingToUpdate

BuildingUpdateViewModel

None.

BuildingIdsToCopy

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "buildingToUpdate": {
    "name": "sample string 1",
    "buildingTypeId": 1,
    "block": "sample string 2",
    "lot": "sample string 3",
    "effectiveDate": "2024-10-14T04:19:08.4933062-04:00",
    "terminationDate": "2024-10-14T04:19:08.4933062-04:00",
    "areaUnitOfMeasureId": 4,
    "corporateBillingId": 5,
    "requireCollectionsApproval": true,
    "active": true,
    "writeOffBalance": 8.0,
    "address": {
      "address1": "sample string 1",
      "address2": "sample string 2",
      "city": "sample string 3",
      "state": "sample string 4",
      "zipCode": "sample string 5",
      "country": "sample string 6"
    },
    "residentBillingId": 9,
    "baseChargeCodeId": 10,
    "statementNoteId": 1,
    "monthlyChargeDate": "2024-10-14T04:19:08.4933062-04:00",
    "statementApprovalId": 11,
    "bankCodeID": 12,
    "saBankCodeID": 1,
    "checkFee": 1.0,
    "chargeBackFeeAmount": 1.0,
    "statementDay": 1,
    "vacancyLoss": true,
    "supportSubtenant": true,
    "areRecurringChargesRounded": true,
    "supportConsolidatedBilling": true,
    "parkingSpaceAttached": true
  },
  "buildingIdsToCopy": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<BuildingUpdateAndCopyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <BuildingIdsToCopy xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </BuildingIdsToCopy>
  <BuildingToUpdate>
    <Active>true</Active>
    <Address xmlns:d3p1="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">
      <d3p1:Address1>sample string 1</d3p1:Address1>
      <d3p1:Address2>sample string 2</d3p1:Address2>
      <d3p1:City>sample string 3</d3p1:City>
      <d3p1:Country>sample string 6</d3p1:Country>
      <d3p1:State>sample string 4</d3p1:State>
      <d3p1:ZipCode>sample string 5</d3p1:ZipCode>
    </Address>
    <AreRecurringChargesRounded>true</AreRecurringChargesRounded>
    <AreaUnitOfMeasureId>4</AreaUnitOfMeasureId>
    <BankCodeID>12</BankCodeID>
    <BaseChargeCodeId>10</BaseChargeCodeId>
    <Block>sample string 2</Block>
    <BuildingTypeId>1</BuildingTypeId>
    <ChargeBackFeeAmount>1</ChargeBackFeeAmount>
    <CheckFee>1</CheckFee>
    <CorporateBillingId>5</CorporateBillingId>
    <EffectiveDate>2024-10-14T04:19:08.4933062-04:00</EffectiveDate>
    <Lot>sample string 3</Lot>
    <MonthlyChargeDate>2024-10-14T04:19:08.4933062-04:00</MonthlyChargeDate>
    <Name>sample string 1</Name>
    <ParkingSpaceAttached>true</ParkingSpaceAttached>
    <RequireCollectionsApproval>true</RequireCollectionsApproval>
    <ResidentBillingId>9</ResidentBillingId>
    <SaBankCodeID>1</SaBankCodeID>
    <StatementApprovalId>11</StatementApprovalId>
    <StatementDay>1</StatementDay>
    <StatementNoteId>1</StatementNoteId>
    <SupportConsolidatedBilling>true</SupportConsolidatedBilling>
    <SupportSubtenant>true</SupportSubtenant>
    <TerminationDate>2024-10-14T04:19:08.4933062-04:00</TerminationDate>
    <VacancyLoss>true</VacancyLoss>
    <WriteOffBalance>8</WriteOffBalance>
  </BuildingToUpdate>
</BuildingUpdateAndCopyViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.