POST api/AttendanceAndTimesheet/InsertAppointment

Request Information

URI Parameters

None.

Body Parameters

InsertAppointmentEntity
NameDescriptionTypeAdditional information
UserID

integer

None.

Token

string

None.

OrgaID

string

None.

AppointmentDate

date

None.

TimeFrom

string

None.

TimeTo

string

None.

Remarks

string

None.

CustomerID

integer

None.

PurposeID

integer

None.

CustomerName

string

None.

AppointmentUserName

string

None.

AttendeesList

string

None.

AccountOwnerID

integer

None.

PostAppointmentRemark

string

None.

Travel

string

None.

AppointmentID

integer

None.

TypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "Token": "sample string 2",
  "OrgaID": "sample string 3",
  "AppointmentDate": "2025-08-07T07:01:07.7073325+08:00",
  "TimeFrom": "sample string 5",
  "TimeTo": "sample string 6",
  "Remarks": "sample string 7",
  "CustomerID": 8,
  "PurposeID": 9,
  "CustomerName": "sample string 10",
  "AppointmentUserName": "sample string 11",
  "AttendeesList": "sample string 12",
  "AccountOwnerID": 13,
  "PostAppointmentRemark": "sample string 14",
  "Travel": "sample string 15",
  "AppointmentID": 16,
  "TypeID": 17
}

text/html

Sample:
{"UserID":1,"Token":"sample string 2","OrgaID":"sample string 3","AppointmentDate":"2025-08-07T07:01:07.7073325+08:00","TimeFrom":"sample string 5","TimeTo":"sample string 6","Remarks":"sample string 7","CustomerID":8,"PurposeID":9,"CustomerName":"sample string 10","AppointmentUserName":"sample string 11","AttendeesList":"sample string 12","AccountOwnerID":13,"PostAppointmentRemark":"sample string 14","Travel":"sample string 15","AppointmentID":16,"TypeID":17}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.InsertAppointmentEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AccountOwnerID>13</AccountOwnerID>
  <AppointmentDate>2025-08-07T07:01:07.7073325+08:00</AppointmentDate>
  <AppointmentID>16</AppointmentID>
  <AppointmentUserName>sample string 11</AppointmentUserName>
  <AttendeesList>sample string 12</AttendeesList>
  <CustomerID>8</CustomerID>
  <CustomerName>sample string 10</CustomerName>
  <OrgaID>sample string 3</OrgaID>
  <PostAppointmentRemark>sample string 14</PostAppointmentRemark>
  <PurposeID>9</PurposeID>
  <Remarks>sample string 7</Remarks>
  <TimeFrom>sample string 5</TimeFrom>
  <TimeTo>sample string 6</TimeTo>
  <Token>sample string 2</Token>
  <Travel>sample string 15</Travel>
  <TypeID>17</TypeID>
  <UserID>1</UserID>
</AttendanceAndTimesheetController.InsertAppointmentEntity>

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

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>