POST api/BookingSystem/InsertBookingDetailsData

Request Information

URI Parameters

None.

Body Parameters

InsertBookingDetails
NameDescriptionTypeAdditional information
BookingID

integer

None.

OrgaID

string

None.

UnitID

string

None.

Employee

integer

None.

AssetType

integer

None.

AssetName

integer

None.

Purpose

string

None.

FromDateTime

date

None.

ToDatetime

date

None.

ApproverStatusID

integer

None.

ApproverID

integer

None.

Type

integer

None.

EntryType

string

None.

UserID

integer

None.

Token

string

None.

SourceType

string

None.

ApprovalDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingID": 1,
  "OrgaID": "sample string 2",
  "UnitID": "sample string 3",
  "Employee": 4,
  "AssetType": 5,
  "AssetName": 6,
  "Purpose": "sample string 7",
  "FromDateTime": "2025-08-07T06:44:34.2722604+08:00",
  "ToDatetime": "2025-08-07T06:44:34.2722604+08:00",
  "ApproverStatusID": 8,
  "ApproverID": 9,
  "Type": 10,
  "EntryType": "sample string 11",
  "UserID": 12,
  "Token": "sample string 13",
  "SourceType": "sample string 14",
  "ApprovalDate": "2025-08-07T06:44:34.2722604+08:00"
}

text/html

Sample:
{"BookingID":1,"OrgaID":"sample string 2","UnitID":"sample string 3","Employee":4,"AssetType":5,"AssetName":6,"Purpose":"sample string 7","FromDateTime":"2025-08-07T06:44:34.2722604+08:00","ToDatetime":"2025-08-07T06:44:34.2722604+08:00","ApproverStatusID":8,"ApproverID":9,"Type":10,"EntryType":"sample string 11","UserID":12,"Token":"sample string 13","SourceType":"sample string 14","ApprovalDate":"2025-08-07T06:44:34.2722604+08:00"}

application/xml, text/xml

Sample:
<BookingSystemController.InsertBookingDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <ApprovalDate>2025-08-07T06:44:34.2722604+08:00</ApprovalDate>
  <ApproverID>9</ApproverID>
  <ApproverStatusID>8</ApproverStatusID>
  <AssetName>6</AssetName>
  <AssetType>5</AssetType>
  <BookingID>1</BookingID>
  <Employee>4</Employee>
  <EntryType>sample string 11</EntryType>
  <FromDateTime>2025-08-07T06:44:34.2722604+08:00</FromDateTime>
  <OrgaID>sample string 2</OrgaID>
  <Purpose>sample string 7</Purpose>
  <SourceType>sample string 14</SourceType>
  <ToDatetime>2025-08-07T06:44:34.2722604+08:00</ToDatetime>
  <Token>sample string 13</Token>
  <Type>10</Type>
  <UnitID>sample string 3</UnitID>
  <UserID>12</UserID>
</BookingSystemController.InsertBookingDetails>

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

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>