StartShift

Container: CCPService
Namespace: System.Data.Objects

Summary

Attempts to start a new shift
When there is a pending transfer, the transfer is withdrawn before the shift is started,
returning all planned trips and pending bookings to transfer owner

Method

The HTTP method for this function import is POST

Parameters

Name Type Summary
vehicleId* Edm.Int32 The ID of the vehicle, used during the shift
driverId* Edm.Int32 The ID of the driver of the vehicle
deviceId* Edm.Int32 The ID of the device to sets it's current shift.
Parameters marked with a * are required

Return

Type: Entity type - ShiftSummary
Is collection: false
Summary: A new, started shift

Example

Request URL: https://ccp.dispatchconnect.nl/CCPService/DataServiceCCP.svc/StartShift
Example body (sent with POST-request):
{
  "vehicleId" : 1,
  "driverId" : 1,
  "deviceId" : 1
}