Projects
-
Reopen a project
POST /api/1/projects/:id/reopen.jsonFormats
json jsonpReopen a project. A reopen project can be punched in to.
Errors
- 401 Unauthorized
- 403 Read Denied - if the user is not allowed to reopen 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/1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443/reopen 200 { "response": { "active": "true", "company_uuid": "c6fc6f8f-55b7-4b83-b532-9e70046a02c9", "default_tags": null, "hourly_rate": null, "hourly_rate_cents": null, "name": "doloribus ducimus", "notes": null, "time_limit": null, "time_limit_string": null, "uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "visibility": "private", "activities": [ { "name": "impedit et", "project_uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "uuid": "7b857e54-e87e-44bf-b70c-3ee8ef0ab652" }, { "name": "atque soluta", "project_uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "uuid": "6306baed-caab-4288-8434-8237df5bf7d3" } ], "grand_total": 0 } }Reopen a project belonging to a company
POST /api/1/companies/:company_uuid/projects/:uuid/reopen.jsonFormats
json jsonpReopen a project. A reopen project can be punched in to.
Errors
- 401 Unauthorized
- 403 Read Denied - if the user is not allowed to reopen 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/1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443/reopen 200 { "response": { "active": "true", "company_uuid": "c6fc6f8f-55b7-4b83-b532-9e70046a02c9", "default_tags": null, "hourly_rate": null, "hourly_rate_cents": null, "name": "doloribus ducimus", "notes": null, "time_limit": null, "time_limit_string": null, "uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "visibility": "private", "activities": [ { "name": "impedit et", "project_uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "uuid": "7b857e54-e87e-44bf-b70c-3ee8ef0ab652" }, { "name": "atque soluta", "project_uuid": "1b2fc2f9-1bd4-43c6-8de7-0c77b08ee443", "uuid": "6306baed-caab-4288-8434-8237df5bf7d3" } ], "grand_total": 0 } }