Task Status

GET https://leads.qreq.com/api/task-statuses
curl --request GET \
--url 'https://leads.qreq.com/api/task-statuses' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "current_page": 1, "data": [ { "id": 209, "name": "test", "color": "#2ae5bf", "description": "test", "status": "active", "created_by": 9, "created_at": "2025-11-04T11:58:34.000000Z", "updated_at": "2025-11-04T11:58:34.000000Z" }, { "id": 21, "name": "To Do", "color": "#6B7280", "description": null, "status": "active", "created_by": 9, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:06.000000Z" }, { "id": 22, "name": "In Progress", "color": "#3B82F6", "description": null, "status": "active", "created_by": 9, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:06.000000Z" }, { "id": 23, "name": "Review", "color": "#F59E0B", "description": null, "status": "active", "created_by": 9, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:06.000000Z" }, { "id": 24, "name": "Done", "color": "#10B981", "description": null, "status": "active", "created_by": 9, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:06.000000Z" } ], "first_page_url": "https://leads.qreq.com/api/task-statuses?page=1", "from": 1, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/task-statuses?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/task-statuses?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/task-statuses", "per_page": 10, "prev_page_url": null, "to": 5, "total": 5 }, "filters": [] }
GET https://leads.qreq.com/api/task-statuses/{status_id}
curl --request GET \
--url 'https://leads.qreq.com/api/task-statuses/{status_id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "id": 209, "name": "test", "color": "#2ae5bf", "description": "test", "status": "active", "created_by": 9, "created_at": "2025-11-04T11:58:34.000000Z", "updated_at": "2025-11-04T11:58:34.000000Z" } }
POST https://leads.qreq.com/api/task-statuses
Parameter Einzelheiten Beschreibung
name ErforderlichZeichenfolge Status name (e.g., To Do, In Progress)
color OptionalZeichenfolge Hex color code for UI (e.g., #6B7280)
description OptionalZeichenfolge Optional description
status OptionalZeichenfolge active / inactive
curl --request POST \
--url 'https://leads.qreq.com/api/task-statuses' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "In Progress", "color": "#F59E0B", "description": "Work in progress", "status": "active" }'
{ "success": true, "data": { "id": 210, "name": "In Progress", "color": "#F59E0B", "description": "Work in progress", "status": "active", "created_by": 9, "created_at": "2025-11-04T12:30:00.000000Z", "updated_at": "2025-11-04T12:30:00.000000Z" } }
PUT https://leads.qreq.com/api/task-statuses/{status_id}
curl --request PUT \
--url 'https://leads.qreq.com/api/task-statuses/{status_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Done", "color": "#10B981", "status": "active" }'
{ "success": true, "data": { "id": 21, "name": "Done", "color": "#10B981", "description": null, "status": "active", "updated_at": "2025-11-04T12:45:00.000000Z" } }
DELETE https://leads.qreq.com/api/task-statuses/{status_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/task-statuses/{status_id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Task status deleted successfully." }