POST api/Contracts/Delete

Request Information

URI Parameters

None.

Body Parameters

ContractsModel
NameDescriptionTypeAdditional information
Id

integer

None.

Landlord_Id

integer

None.

Tenant_Id

integer

None.

Start_Date

date

None.

End_Date

date

None.

Terms_And_Conditions

string

None.

IsActive

boolean

Required

CreatedBy

string

Required

CreatedDate

date

Required

UpdatedBy

string

None.

UpdatedDate

date

None.

IncrementedInterest

string

None.

TenantName

string

None.

TenantPhoneNumber

string

None.

TenantAddress

string

None.

LandLordName

string

None.

LandLordPhoneNumber

string

None.

LandLordAddress

string

None.

PropertyId

integer

None.

PropDesc

string

None.

Rent

decimal number

None.

OutStandingAmount

decimal number

None.

RefName1

string

None.

AgreementUrl

string

None.

RefContat1

string

None.

RefPhotoIdUrl1

string

None.

RefName2

string

None.

RefContat2

string

None.

RefPhotoIdUrl2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Landlord_Id": 2,
  "Tenant_Id": 3,
  "Start_Date": "2025-12-11T04:34:02.8359241+05:30",
  "End_Date": "2025-12-11T04:34:02.8359241+05:30",
  "Terms_And_Conditions": "sample string 6",
  "IsActive": true,
  "CreatedBy": "sample string 8",
  "CreatedDate": "2025-12-11T04:34:02.8359241+05:30",
  "UpdatedBy": "sample string 10",
  "UpdatedDate": "2025-12-11T04:34:02.8359241+05:30",
  "IncrementedInterest": "sample string 12",
  "TenantName": "sample string 13",
  "TenantPhoneNumber": "sample string 14",
  "TenantAddress": "sample string 15",
  "LandLordName": "sample string 16",
  "LandLordPhoneNumber": "sample string 17",
  "LandLordAddress": "sample string 18",
  "PropertyId": 19,
  "PropDesc": "sample string 20",
  "Rent": 21.1,
  "OutStandingAmount": 22.1,
  "RefName1": "sample string 23",
  "AgreementUrl": "sample string 24",
  "RefContat1": "sample string 25",
  "RefPhotoIdUrl1": "sample string 26",
  "RefName2": "sample string 27",
  "RefContat2": "sample string 28",
  "RefPhotoIdUrl2": "sample string 29"
}

application/xml, text/xml

Sample:
<ContractsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PropertyRMS.Model">
  <AgreementUrl>sample string 24</AgreementUrl>
  <CreatedBy>sample string 8</CreatedBy>
  <CreatedDate>2025-12-11T04:34:02.8359241+05:30</CreatedDate>
  <End_Date>2025-12-11T04:34:02.8359241+05:30</End_Date>
  <Id>1</Id>
  <IncrementedInterest>sample string 12</IncrementedInterest>
  <IsActive>true</IsActive>
  <LandLordAddress>sample string 18</LandLordAddress>
  <LandLordName>sample string 16</LandLordName>
  <LandLordPhoneNumber>sample string 17</LandLordPhoneNumber>
  <Landlord_Id>2</Landlord_Id>
  <OutStandingAmount>22.1</OutStandingAmount>
  <PropDesc>sample string 20</PropDesc>
  <PropertyId>19</PropertyId>
  <RefContat1>sample string 25</RefContat1>
  <RefContat2>sample string 28</RefContat2>
  <RefName1>sample string 23</RefName1>
  <RefName2>sample string 27</RefName2>
  <RefPhotoIdUrl1>sample string 26</RefPhotoIdUrl1>
  <RefPhotoIdUrl2>sample string 29</RefPhotoIdUrl2>
  <Rent>21.1</Rent>
  <Start_Date>2025-12-11T04:34:02.8359241+05:30</Start_Date>
  <TenantAddress>sample string 15</TenantAddress>
  <TenantName>sample string 13</TenantName>
  <TenantPhoneNumber>sample string 14</TenantPhoneNumber>
  <Tenant_Id>3</Tenant_Id>
  <Terms_And_Conditions>sample string 6</Terms_And_Conditions>
  <UpdatedBy>sample string 10</UpdatedBy>
  <UpdatedDate>2025-12-11T04:34:02.8359241+05:30</UpdatedDate>
</ContractsModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.