These docs are for v1. Click to read the latest docs for v3.

Create

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

Field

Description

code

API Status Code

message

API Message (Success/Failure)

generatedAtInMillis

API generation timestamp in UTC

shiftId

Unique identifier of the shift

Language
Credentials
Header
Click Try It! to start a request and see the response here!