POST api/tenant/add

Request Information

URI Parameters

None.

Body Parameters

AddTenantRequest
NameDescriptionTypeAdditional information
UnitName

string

None.

TenantName

string

None.

PhoneNumber

string

None.

StartDate

string

None.

RentAmount

decimal number

None.

AddRent

boolean

None.

AddDeposit

boolean

None.

CoID

integer

None.

CreatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UnitName": "sample string 1",
  "TenantName": "sample string 2",
  "PhoneNumber": "sample string 3",
  "StartDate": "sample string 4",
  "RentAmount": 5.1,
  "AddRent": true,
  "AddDeposit": true,
  "CoID": 8,
  "CreatedBy": 9
}

application/xml, text/xml

Sample:
<DBOperationsController.AddTenantRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KODY_MPesaCallbackAPI.Controllers">
  <AddDeposit>true</AddDeposit>
  <AddRent>true</AddRent>
  <CoID>8</CoID>
  <CreatedBy>9</CreatedBy>
  <PhoneNumber>sample string 3</PhoneNumber>
  <RentAmount>5.1</RentAmount>
  <StartDate>sample string 4</StartDate>
  <TenantName>sample string 2</TenantName>
  <UnitName>sample string 1</UnitName>
</DBOperationsController.AddTenantRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.