/shifts/work-units Permission level: 5

get/shifts/work-units

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Query parameters

start_timestampstring required

time

end_timestampstring required

time

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    {
      "permissions": {
        "manager": true
      },
      "shift": {
        "id": "372980195",
        "start": "Feb 1, 2017 03:00",
        "end": "Feb 1, 2017 11:00"
      },
      "schedule": {
        "id": 131164,
        "active": 1,
        "notify": 1,
        "store": 11,
        "user": 2,
        "name": "Dev Support",
        "start": 1,
        "end": 97,
        "location": 2,
        "color": 28,
        "ical": "xxxxx",
        "visible": 1
      },
      "users": {
        "2970678": {
          "id": "2970678",
          "name": "Milan Rudez",
          "shift_user_id": 416384634
        }
      }
    }
  ],
  "token": "xxxx"
}

Changes