v1

latestOpenAPI 3.1.02026-07-2438302.6 MB

Conflicting Jobs & Time off

put/jobs/schedule/overlap

Query parameters

from_datestring required
to_datestring required
user_uidstring required
team_uidstring required
job_uidstring
consider_route_overlapboolean
route_uidstring
appointment_uidstring

if appointments is enabled

Response

200

typestring
messagestring

Example response

{
  "type": "success",
  "message": "Successfully obtained overlapping jobs/timeoff",
  "data": [
    {
      "date": "2024-09-18",
      "jobs": [
        {
          "job_uid": "10654979-7ebb-44fb-892d-8024c737863e",
          "assigned_to": [
            {
              "acceptance_status": "AWAIT_RESPONSE",
              "assigned_at": "2024-09-11T10:03:12.439Z",
              "user": {
                "user_uid": "e5129280-ae99-4708-867c-c7fa106cb63a",
                "first_name": "Siddhant",
                "last_name": "S",
                "email": "siddhant.s@zuper.co",
                "designation": "Android Dev",
                "emp_code": "Z12312434",
                "prefix": "Z22",
                "profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/852d527f-082c-497c-8294-eba81707b601.jpg",
                "hourly_labor_charge": 20,
                "is_active": true,
                "created_at": "2024-05-14T12:42:38.000Z",
                "updated_at": "2024-09-13T07:34:19.000Z",
                "role": {
                  "role_id": 1,
                  "role_uid": "504e4eac-ff7d-11e7-8be5-0ed5f89f718b",
                  "role_name": "Admin",
                  "role_key": "ADMIN",
                  "created_at": "2018-01-22T00:00:00.000Z",
                  "updated_at": "2018-01-22T00:00:00.000Z"
                }
              },
              "team": {
                "team_uid": "beeb0c3c-bb1b-4e5d-90c1-b465f1a1ceb9",
                "team_name": "Team Android",
                "team_color": "#0c9b24",
                "is_active": true
              }
            }
          ],
          "job_title": "Visit for Tz-Android",
          "scheduled_start_time": "2024-09-17T10:02:00.000Z",
          "scheduled_end_time": "2024-09-18T10:02:00.000Z",
          "due_date": "2024-09-20T03:59:59.000Z",
          "job_timezone": "America/Toronto",
          "created_at": "2024-09-11T10:03:12.445Z",
          "updated_at": "2024-09-12T07:51:57.741Z",
          "work_order_number": 28287
        }
      ]
    }
  ]
}