POST api/TimeOff

Request Information

URI Parameters

None.

Body Parameters

TimeOffDTO
NameDescriptionTypeAdditional information
GUID

globally unique identifier

None.

ID

integer

None.

StartAt

date

None.

EndAt

date

None.

Title

string

None.

SystemTimeOffTypeID

integer

None.

TenantOutletID

integer

None.

TenantID

integer

None.

BookingItemID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "GUID": "d2a1dbeb-67b3-4bcd-9d7e-d3abbbbc205b",
  "ID": 2,
  "StartAt": "2026-11-05T11:42:36.7554176+00:00",
  "EndAt": "2026-11-05T11:42:36.7554176+00:00",
  "Title": "sample string 5",
  "SystemTimeOffTypeID": 1,
  "TenantOutletID": 1,
  "TenantID": 1,
  "BookingItemID": 1
}

text/xml

Sample:
<TimeOffDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
  <BookingItemID>1</BookingItemID>
  <EndAt xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2026-11-05T11:42:36.7554176Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </EndAt>
  <GUID>d2a1dbeb-67b3-4bcd-9d7e-d3abbbbc205b</GUID>
  <ID>2</ID>
  <StartAt xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2026-11-05T11:42:36.7554176Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </StartAt>
  <SystemTimeOffTypeID>1</SystemTimeOffTypeID>
  <TenantID>1</TenantID>
  <TenantOutletID>1</TenantOutletID>
  <Title>sample string 5</Title>
</TimeOffDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.