Projects

  • Sign off a project

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

    Sign off from a project. Signed off projects can no longer be punched in to.

    Errors
    • 401 Unauthorized
    • 403 Read Denied - if the user is not allowed to sign off 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/38101a69-801a-4eff-b02f-89990bb96094/sign_off
    200
    {
      "response": {
        "active": "false",
        "company_uuid": "d31c5837-21f6-40a0-8202-4a84081cdc2b",
        "default_tags": null,
        "hourly_rate": null,
        "hourly_rate_cents": null,
        "name": "cupiditate sunt",
        "notes": null,
        "time_limit": null,
        "time_limit_string": null,
        "uuid": "38101a69-801a-4eff-b02f-89990bb96094",
        "visibility": "private",
        "activities": [
          {
            "name": "sed quis",
            "project_uuid": "38101a69-801a-4eff-b02f-89990bb96094",
            "uuid": "feb1633c-6b0d-4599-bb16-2603d9482712"
          },
          {
            "name": "saepe repellendus",
            "project_uuid": "38101a69-801a-4eff-b02f-89990bb96094",
            "uuid": "8b012d27-27ad-48b3-843f-a79a8dabb035"
          }
        ],
        "grand_total": 0
      }
    }

    Sign off a project belonging to a company

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

    Sign off from a project. Signed off projects can no longer be punched in to.

    Errors
    • 401 Unauthorized
    • 403 Read Denied - if the user is not allowed to sign off 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/38101a69-801a-4eff-b02f-89990bb96094/sign_off
    200
    {
      "response": {
        "active": "false",
        "company_uuid": "d31c5837-21f6-40a0-8202-4a84081cdc2b",
        "default_tags": null,
        "hourly_rate": null,
        "hourly_rate_cents": null,
        "name": "cupiditate sunt",
        "notes": null,
        "time_limit": null,
        "time_limit_string": null,
        "uuid": "38101a69-801a-4eff-b02f-89990bb96094",
        "visibility": "private",
        "activities": [
          {
            "name": "sed quis",
            "project_uuid": "38101a69-801a-4eff-b02f-89990bb96094",
            "uuid": "feb1633c-6b0d-4599-bb16-2603d9482712"
          },
          {
            "name": "saepe repellendus",
            "project_uuid": "38101a69-801a-4eff-b02f-89990bb96094",
            "uuid": "8b012d27-27ad-48b3-843f-a79a8dabb035"
          }
        ],
        "grand_total": 0
      }
    }