Projects

  • Punch out of a project

    POST /api/1/projects/:id/punch_out.json
    Formats
    json jsonp

    Punch out of a running project. Can take notes.

    Errors
    • 401 Unauthorized
    • 403 Read Denied - if the user is not allowed to punch in to this project
    • 404 Record Not Found - returned if the company with the specified UUID is not found
    • 404 Record Not Found - returned if the project with the specified UUID is not found
    Example
    DELETE /api/1/projects/fd355ce3-1cbe-454e-bc3f-648404f5030a/punch_out
    200
    {
      "response": {
        "active": "true",
        "company_uuid": "a6f6b8d8-4829-4e37-a2c3-a8ef5d3d37c3",
        "default_tags": null,
        "hourly_rate": null,
        "hourly_rate_cents": null,
        "name": "consequatur et",
        "notes": null,
        "time_limit": null,
        "time_limit_string": null,
        "uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
        "visibility": "private",
        "activities": [
          {
            "name": "perspiciatis aut",
            "project_uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
            "uuid": "f748b796-d227-44c2-a644-7b3a5bbcde85"
          },
          {
            "name": "voluptates ut",
            "project_uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
            "uuid": "d2c6dcc3-6b2d-4889-bafc-de7e53ad2ceb"
          }
        ],
        "grand_total": 0
      }
    }

    Punch out of a project belonging to a company

    POST /api/1/companies/:company_uuid/projects/:uuid/punch_out.json
    Formats
    json jsonp

    Punch out of a running project. Can take notes.

    Errors
    • 401 Unauthorized
    • 403 Read Denied - if the user is not allowed to punch in to this project
    • 404 Record Not Found - returned if the company with the specified UUID is not found
    • 404 Record Not Found - returned if the project with the specified UUID is not found
    Example
    DELETE /api/1/projects/fd355ce3-1cbe-454e-bc3f-648404f5030a/punch_out
    200
    {
      "response": {
        "active": "true",
        "company_uuid": "a6f6b8d8-4829-4e37-a2c3-a8ef5d3d37c3",
        "default_tags": null,
        "hourly_rate": null,
        "hourly_rate_cents": null,
        "name": "consequatur et",
        "notes": null,
        "time_limit": null,
        "time_limit_string": null,
        "uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
        "visibility": "private",
        "activities": [
          {
            "name": "perspiciatis aut",
            "project_uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
            "uuid": "f748b796-d227-44c2-a644-7b3a5bbcde85"
          },
          {
            "name": "voluptates ut",
            "project_uuid": "fd355ce3-1cbe-454e-bc3f-648404f5030a",
            "uuid": "d2c6dcc3-6b2d-4889-bafc-de7e53ad2ceb"
          }
        ],
        "grand_total": 0
      }
    }