POST api/AttendanceAndTimesheet/InsertAppointmentNew

Request Information

URI Parameters

None.

Body Parameters

InsertAppointmentEntityNew
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.

ContactPersonID

integer

None.

AppointmentBy

integer

None.

CustomerName

string

None.

AppointmentUserName

string

None.

AttendeesList

string

None.

AccountOwnerID

integer

None.

PostAppointmentRemark

string

None.

Travel

string

None.

SourceType

string

None.

Address

string

None.

Coordinate

string

None.

AppointmentID

integer

None.

TypeID

integer

None.

objAttendeesList

Collection of AppointmentAttendeesList

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "Token": "sample string 2",
  "OrgaID": "sample string 3",
  "AppointmentDate": "2025-08-07T06:56:28.0108533+08:00",
  "TimeFrom": "sample string 5",
  "TimeTo": "sample string 6",
  "Remarks": "sample string 7",
  "CustomerID": 8,
  "PurposeID": 9,
  "ContactPersonID": 10,
  "AppointmentBy": 11,
  "CustomerName": "sample string 12",
  "AppointmentUserName": "sample string 13",
  "AttendeesList": "sample string 14",
  "AccountOwnerID": 15,
  "PostAppointmentRemark": "sample string 16",
  "Travel": "sample string 17",
  "SourceType": "sample string 18",
  "Address": "sample string 19",
  "Coordinate": "sample string 20",
  "AppointmentID": 21,
  "TypeID": 22,
  "objAttendeesList": [
    {
      "AttendessName": "sample string 1",
      "AttendessUserID": 2
    },
    {
      "AttendessName": "sample string 1",
      "AttendessUserID": 2
    }
  ]
}

text/html

Sample:
{"UserID":1,"Token":"sample string 2","OrgaID":"sample string 3","AppointmentDate":"2025-08-07T06:56:28.0108533+08:00","TimeFrom":"sample string 5","TimeTo":"sample string 6","Remarks":"sample string 7","CustomerID":8,"PurposeID":9,"ContactPersonID":10,"AppointmentBy":11,"CustomerName":"sample string 12","AppointmentUserName":"sample string 13","AttendeesList":"sample string 14","AccountOwnerID":15,"PostAppointmentRemark":"sample string 16","Travel":"sample string 17","SourceType":"sample string 18","Address":"sample string 19","Coordinate":"sample string 20","AppointmentID":21,"TypeID":22,"objAttendeesList":[{"AttendessName":"sample string 1","AttendessUserID":2},{"AttendessName":"sample string 1","AttendessUserID":2}]}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.InsertAppointmentEntityNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AccountOwnerID>15</AccountOwnerID>
  <Address>sample string 19</Address>
  <AppointmentBy>11</AppointmentBy>
  <AppointmentDate>2025-08-07T06:56:28.0108533+08:00</AppointmentDate>
  <AppointmentID>21</AppointmentID>
  <AppointmentUserName>sample string 13</AppointmentUserName>
  <AttendeesList>sample string 14</AttendeesList>
  <ContactPersonID>10</ContactPersonID>
  <Coordinate>sample string 20</Coordinate>
  <CustomerID>8</CustomerID>
  <CustomerName>sample string 12</CustomerName>
  <OrgaID>sample string 3</OrgaID>
  <PostAppointmentRemark>sample string 16</PostAppointmentRemark>
  <PurposeID>9</PurposeID>
  <Remarks>sample string 7</Remarks>
  <SourceType>sample string 18</SourceType>
  <TimeFrom>sample string 5</TimeFrom>
  <TimeTo>sample string 6</TimeTo>
  <Token>sample string 2</Token>
  <Travel>sample string 17</Travel>
  <TypeID>22</TypeID>
  <UserID>1</UserID>
  <objAttendeesList>
    <AttendanceAndTimesheetController.AppointmentAttendeesList>
      <AttendessName>sample string 1</AttendessName>
      <AttendessUserID>2</AttendessUserID>
    </AttendanceAndTimesheetController.AppointmentAttendeesList>
    <AttendanceAndTimesheetController.AppointmentAttendeesList>
      <AttendessName>sample string 1</AttendessName>
      <AttendessUserID>2</AttendessUserID>
    </AttendanceAndTimesheetController.AppointmentAttendeesList>
  </objAttendeesList>
</AttendanceAndTimesheetController.InsertAppointmentEntityNew>

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

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>