Get worker's schedule

Get worker's schedule

Retrieves all of the schedule entries for a worker.

curl -X GET "https://onfleet.com/api/v2/workers/GPOQQjU84QPN~fP*pbunT2CW/schedule" -u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.workers.getSchedule(id="GPOQQjU84QPN~fP*pbunT2CW")
onfleet.workers.getSchedule("GPOQQjU84QPN~fP*pbunT2CW");
$onfleet->workers->getSchedule("GPOQQjU84QPN~fP*pbunT2CW")
{
  "entries":[
    {
      "date": "2017-07-20",
      "shifts": [[1500591600000,1500613200000]],
      "timezone": "America/Los_Angeles"
    },
      {
        "date": "2017-07-17",
        "shifts": [[1500307200000,1500314400000], [1500323100000,1500336000000]],
        "timezone": "America/Los_Angeles"
      }
  ]
}

📘

Unix Time

Onfleet API only accepts time formatted in Unix to the millisecond precision. Any other formats are not accepted and may produce unexpected results. For more information please see Data Types and Response Formats or free conversion tool online here.