Account Industry
GET https://leads.qreq.com/api/account-industries
curl --request GET \
--url 'https://leads.qreq.com/api/account-industries' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/account-industries' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account industries retrieved successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "test account industry",
"description": "test account description",
"color": "#fff",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:48:31.000000Z",
"updated_at": "2025-11-03T07:48:31.000000Z"
}
],
"first_page_url": "https://leads.qreq.com/api/account-industries?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://leads.qreq.com/api/account-industries?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://leads.qreq.com/api/account-industries?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/account-industries",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
POST https://leads.qreq.com/api/account-industries
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | ErforderlichZeichenfolge | Name of the industry |
| description | OptionalZeichenfolge | Optional description |
| color | OptionalZeichenfolge | Color in HEX format (e.g., #FF5733) |
| status | ErforderlichZeichenfolge | Active or inactive |
curl --request POST \
--url 'https://leads.qreq.com/api/account-industries' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Technology", "description": "Tech sector accounts", "color": "#007BFF", "status": "active" }'
--url 'https://leads.qreq.com/api/account-industries' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Technology", "description": "Tech sector accounts", "color": "#007BFF", "status": "active" }'
{
"status": "success",
"message": "Account industry created successfully.",
"data": {
"name": "test account industry",
"description": "test account description",
"color": "#fff",
"status": "active",
"created_by": 33,
"updated_at": "2025-11-03T07:48:31.000000Z",
"created_at": "2025-11-03T07:48:31.000000Z",
"id": 1
}
}
PUT https://leads.qreq.com/api/account-industries/{industry_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | ErforderlichZeichenfolge | Name of the industry |
| description | OptionalZeichenfolge | Optional description |
| color | OptionalZeichenfolge | Color in HEX format (e.g., #FF5733) |
| status | ErforderlichZeichenfolge | Active or inactive |
curl --request PUT \
--url 'https://leads.qreq.com/api/account-industries/{industry_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Technology Updated", "description": "Updated description", "color": "#0056b3", "status": "active" }'
--url 'https://leads.qreq.com/api/account-industries/{industry_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Technology Updated", "description": "Updated description", "color": "#0056b3", "status": "active" }'
{
"status": "success",
"message": "Account industry updated successfully.",
"data": {
"id": 1,
"name": "test account industry 1",
"description": "test account description 1",
"color": "#fff",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:48:31.000000Z",
"updated_at": "2025-11-03T07:53:24.000000Z"
}
}
DELETE https://leads.qreq.com/api/account-industries/{industry_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/account-industries/{industry_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/account-industries/{industry_id}' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account industry deleted successfully."
}
PATCH https://leads.qreq.com/api/account-industries/{industry_id}/toggle-status
curl --request PATCH \
--url 'https://leads.qreq.com/api/account-industries/{industry_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/account-industries/{industry_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account industry status updated successfully.",
"data": {
"id": 1,
"name": "test account industry 1",
"description": "test account description 1",
"color": "#fff",
"status": "inactive",
"created_by": 33,
"created_at": "2025-11-03T07:48:31.000000Z",
"updated_at": "2025-11-03T07:54:23.000000Z"
}
}