This API allows you to create new shifts for a driver present in your account. You can create shifts only for those drivers to whom you have access to and provided you have the privilege to do so. Along with creating a shift, this API also generates a unique shift ID for that shift. This ID will serve as a reference while making API calls for viewing, updating and deleting activities related to this shift.

📘

Sample Request

https://api.azuga.com/azuga-ws/v1/users/shift/capture.json

{  
   "eventTime":1459051800000,
   "eventType":1,
   "location":{  
      "accuracy":75.0,
      "address":{  
         "city":"San Jose",
         "country":"USA",
         "formattedAddress":"132,Lakeshore Circle, San Jose, California, USA 95131",
         "state":"California",
         "zip":"95131"
      },
      "altitude":-1.0,
      "bearing":-1.0,
      "latitude":37.385698,
      "longitude":-121.894093,
      "speed":-1.0,
      "time":1456278813000
   }
“misc”:  “Starting shift”
}

API Response Explanation

FieldDescription
codeAPI Status Code
messageAPI Message (Success/Failure)
generatedAtInMillisAPI generation timestamp in UTC
shiftIdUnique identifier of the shift
Language
Authorization
Header
Click Try It! to start a request and see the response here!