POST api/Appointment/add

Request Information

URI Parameters

None.

Body Parameters

InAddAppointmentDetail
NameDescriptionTypeAdditional information
UnitId

string

None.

Name

string

None.

Email

string

None.

ContactNo

string

None.

LeaseType

string

None.

Industry

string

None.

Nationality

string

None.

Occupation

string

None.

NoOfOccupantAdult

integer

None.

NoOfOccupantChild

integer

None.

DateMoveInEstimated

date

None.

DateMoveInEstimatedEnd

date

None.

DateAppointmentStart

date

None.

DateAppointmentEnd

date

None.

Comment

string

None.

Remarks

string

None.

ModeOfPurchase

string

None.

Type

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UnitId": "sample string 1",
  "Name": "sample string 2",
  "Email": "sample string 3",
  "ContactNo": "sample string 4",
  "LeaseType": "sample string 5",
  "Industry": "sample string 6",
  "Nationality": "sample string 7",
  "Occupation": "sample string 8",
  "NoOfOccupantAdult": 1,
  "NoOfOccupantChild": 1,
  "DateMoveInEstimated": "2024-09-28T11:18:21.1737479+08:00",
  "DateMoveInEstimatedEnd": "2024-09-28T11:18:21.1737479+08:00",
  "DateAppointmentStart": "2024-09-28T11:18:21.1737479+08:00",
  "DateAppointmentEnd": "2024-09-28T11:18:21.1737479+08:00",
  "Comment": "sample string 11",
  "Remarks": "sample string 12",
  "ModeOfPurchase": "sample string 13",
  "Type": "sample string 14"
}

application/xml, text/xml

Sample:
<Appointments.InAddAppointmentDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HyperQB.EZTOneApp.Services.Models.ApiModels">
  <Comment>sample string 11</Comment>
  <ContactNo>sample string 4</ContactNo>
  <DateAppointmentEnd>2024-09-28T11:18:21.1737479+08:00</DateAppointmentEnd>
  <DateAppointmentStart>2024-09-28T11:18:21.1737479+08:00</DateAppointmentStart>
  <DateMoveInEstimated>2024-09-28T11:18:21.1737479+08:00</DateMoveInEstimated>
  <DateMoveInEstimatedEnd>2024-09-28T11:18:21.1737479+08:00</DateMoveInEstimatedEnd>
  <Email>sample string 3</Email>
  <Industry>sample string 6</Industry>
  <LeaseType>sample string 5</LeaseType>
  <ModeOfPurchase>sample string 13</ModeOfPurchase>
  <Name>sample string 2</Name>
  <Nationality>sample string 7</Nationality>
  <NoOfOccupantAdult>1</NoOfOccupantAdult>
  <NoOfOccupantChild>1</NoOfOccupantChild>
  <Occupation>sample string 8</Occupation>
  <Remarks>sample string 12</Remarks>
  <Type>sample string 14</Type>
  <UnitId>sample string 1</UnitId>
</Appointments.InAddAppointmentDetail>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.