Shifts

  • Return a single shift

    GET /api/1/shifts/:uuid.json
    Formats
    json jsonp

    Returns a single shift object belonging the authenticated user.

    Errors
    • 401 Unauthorized
    • 404 Record Not Found - returned if the project with the specified UUID is not found
    • 404 Record Not Found - returned if the shift with the specified UUID is not found
    Example
    GET /api/1/shifts/c207e502-a0df-4671-b17b-a00cb69c8811
    200
    {
      "response": {
        "billable": true,
        "notes": "ut consectetur est dolor et atque corrupti voluptas eos odit quam ex non consequuntur alias voluptas adipisci repellendus cupiditate est",
        "project_uuid": "c1ee5629-36b6-44e5-ad97-4e99c960035b",
        "start": "2013-07-16T05:19:27Z",
        "stop": "2013-07-16T06:19:27Z",
        "time_zone": "Australia/Perth",
        "time_zone_offset": null,
        "user_uuid": "8b9a9757-9d38-4e1c-8b4e-e3ce96893d4b",
        "uuid": "c207e502-a0df-4671-b17b-a00cb69c8811",
        "activity_uuid": null,
        "tag_list": []
      }
    }

    Return a single shift clocked against a specific project

    GET /api/1/projects/:project_uuid/shifts/:uuid.json
    Formats
    json jsonp

    Returns a single shift object belonging the authenticated user.

    Errors
    • 401 Unauthorized
    • 404 Record Not Found - returned if the project with the specified UUID is not found
    • 404 Record Not Found - returned if the shift with the specified UUID is not found
    Example
    GET /api/1/shifts/c207e502-a0df-4671-b17b-a00cb69c8811
    200
    {
      "response": {
        "billable": true,
        "notes": "ut consectetur est dolor et atque corrupti voluptas eos odit quam ex non consequuntur alias voluptas adipisci repellendus cupiditate est",
        "project_uuid": "c1ee5629-36b6-44e5-ad97-4e99c960035b",
        "start": "2013-07-16T05:19:27Z",
        "stop": "2013-07-16T06:19:27Z",
        "time_zone": "Australia/Perth",
        "time_zone_offset": null,
        "user_uuid": "8b9a9757-9d38-4e1c-8b4e-e3ce96893d4b",
        "uuid": "c207e502-a0df-4671-b17b-a00cb69c8811",
        "activity_uuid": null,
        "tag_list": []
      }
    }