Project Tasks

GET https://leads.qreq.com/api/project-tasks
curl --request GET \
--url 'https://leads.qreq.com/api/project-tasks' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "tasks": [], "projects": [], "users": [], "taskStatuses": [] } }
GET https://leads.qreq.com/api/project-tasks/{task_id}
curl --request GET \
--url 'https://leads.qreq.com/api/project-tasks/{task_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Project task retrieved successfully.", "data": { "id": 45, "project_id": 12, "title": "Design Homepage UI", "assigned_to": 30, "status_id": 21, "description": "Initial layout for homepage", "due_date": "2025-11-15", "created_at": "2025-11-04T12:00:00.000000Z", "updated_at": "2025-11-04T13:00:00.000000Z" } }
POST https://leads.qreq.com/api/project-tasks
curl --request POST \
--url 'https://leads.qreq.com/api/project-tasks' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "project_id": 12, "title": "Design Homepage UI", "assigned_to": 30, "status_id": 21, "description": "Initial layout for homepage", "due_date": "2025-11-15" }'
{ "status": "success", "message": "Project task created successfully.", "data": { "id": 45, "project_id": 12, "title": "Design Homepage UI", "assigned_to": 30, "status_id": 21, "description": "Initial layout for homepage", "due_date": "2025-11-15", "created_at": "2025-11-04T12:00:00.000000Z" } }
PUT https://leads.qreq.com/api/project-tasks/{task_id}
curl --request PUT \
--url 'https://leads.qreq.com/api/project-tasks/{task_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "title": "Updated Homepage UI", "description": "Improved layout and mobile responsiveness", "status_id": 22 }'
{ "status": "success", "message": "Project task updated successfully.", "data": { "id": 45, "title": "Updated Homepage UI", "description": "Improved layout and mobile responsiveness", "status_id": 22, "updated_at": "2025-11-04T14:00:00.000000Z" } }
DELETE https://leads.qreq.com/api/project-tasks/{task_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/project-tasks/{task_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Project task deleted successfully." }