Projekte

GET https://leads.qreq.com/api/projects
curl --request GET \
--url 'https://leads.qreq.com/api/projects' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "current_page": 1, "data": [], "first_page_url": "https://leads.qreq.com/api/projects?page=1", "from": null, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/projects?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/projects?page=1", "label": "1", "page": 1, "active": true }, { "url": null, "label": "Next »", "page": null, "active": false } ], "next_page_url": null, "path": "https://leads.qreq.com/api/projects", "per_page": 10, "prev_page_url": null, "to": null, "total": 0 } }
POST https://leads.qreq.com/api/projects
Parameter Einzelheiten Beschreibung
name Erforderlichstring Project name or title
description Optionalstring Project description or notes
start_date Optionaldate Start date (YYYY-MM-DD)
end_date Optionaldate End date or deadline (YYYY-MM-DD)
curl --request POST \
--url 'https://leads.qreq.com/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Website Redesign", "description": "Redesign the company homepage", "start_date": "2025-11-04", "end_date": "2025-12-01" }'
{ "status": "success", "message": "Project created successfully.", "data": { "id": 55, "name": "Website Redesign", "description": "Redesign the company homepage", "start_date": "2025-11-04", "end_date": "2025-12-01", "created_at": "2025-11-04T12:05:00.000000Z" } }
PUT https://leads.qreq.com/api/projects/{project_id}
curl --request PUT \
--url 'https://leads.qreq.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Website Revamp", "description": "Updated UI/UX design for homepage" }'
{ "status": "success", "message": "Project updated successfully.", "data": { "id": 55, "name": "Website Revamp", "description": "Updated UI/UX design for homepage", "updated_at": "2025-11-04T12:10:00.000000Z" } }
DELETE https://leads.qreq.com/api/projects/{project_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Project deleted successfully." }