POST api/v1/shuttle/runs/complete/driver

Request Information

URI Parameters

None.

Body Parameters

CompletedShuttleRequest
NameDescriptionTypeAdditional information
account_id

integer

None.

driver_id

string

None.

start

date

None.

end

date

None.

Request Formats

application/json, text/json

Sample:
{
  "account_id": 1,
  "driver_id": "sample string 2",
  "start": "2025-12-21T05:01:02.2089386+00:00",
  "end": "2025-12-21T05:01:02.2089386+00:00"
}

application/xml, text/xml

Sample:
<ShuttleController.CompletedShuttleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cogent.Open.API.Shuttle.Controllers">
  <account_id>1</account_id>
  <driver_id>sample string 2</driver_id>
  <end xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-21T05:01:02.2089386Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </end>
  <start xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-21T05:01:02.2089386Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </start>
</ShuttleController.CompletedShuttleRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.