Attachments
Upload Task File
URL /task/:taskId
Method POST
Description Upload attachment to task
Header Content-Type: multipart/form-data
Request Body { "userId": "string", "file": "binary" }
Response { "message": "File uploaded successfully",
"task": { ... } }
Error { "message": "No file uploaded / Task not
found / Server Error" }
Attachments
Upload Project Report
URL /project/:projectId
Method POST
Description Upload report to project
Header Content-Type: multipart/form-data
Request Body { "userId": "string", "file": "binary" }
Response { "message": "Report uploaded
successfully", "project": { ... } }
Error { "message": "No file uploaded / Project not
found / Server Error" }
Project
Delete Report
URL /project/:projectId/report/:reportId
Method DELETE
Description Delete a report
Header Content-Type: application/json
Request Body {}
Response { "project": { ...updated project... } }
Error { "message": "Project not found / Server
error" }
Project
Edit Report
URL /project/:projectId/report/:reportId
Method PUT
Description Rename report
Header Content-Type: application/json
Request Body { "filename": "new_name.pdf" }
Response { "project": { ...updated project... } }
Error { "message": "Project not found / Report
not found / Server error" }