POST api/Shifts

Request Information

URI Parameters

None.

Body Parameters

Shift
NameDescriptionTypeAdditional information
Date

date

None.

VehicleID

integer

None.

Driver

integer

None.

Conductor

integer

None.

Status

integer

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Date": "2025-04-19T16:02:28.7788952+03:00",
  "VehicleID": 2,
  "Driver": 3,
  "Conductor": 4,
  "Status": 5,
  "ID": 6
}

application/xml, text/xml

Sample:
<Shift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookingSystem.Models">
  <Conductor>4</Conductor>
  <Date>2025-04-19T16:02:28.7788952+03:00</Date>
  <Driver>3</Driver>
  <ID>6</ID>
  <Status>5</Status>
  <VehicleID>2</VehicleID>
</Shift>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />