Brand
GET https://leads.qreq.com/api/brands
curl --request GET \
--url 'https://leads.qreq.com/api/brands' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/brands' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Brands retrieved successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "Nike",
"description": "Sports Brand",
"website": "https://nike.com",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:10:10.000000Z",
"updated_at": "2025-11-03T07:10:10.000000Z"
}
],
"first_page_url": "https://leads.qreq.com/api/brands?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://leads.qreq.com/api/brands?page=1",
"links": [],
"next_page_url": null,
"path": "https://leads.qreq.com/api/brands",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
POST https://leads.qreq.com/api/brands
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Erforderlich Zeichenfolge | Brand name |
| description | Optional Zeichenfolge | Optional description |
| website | Optional Zeichenfolge | Website URL |
| status | Optional Zeichenfolge | Active or inactive |
curl --request POST \
--url 'https://leads.qreq.com/api/brands' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Nike", "description": "Sports Brand", "website": "https://nike.com", "status": "active" }'
--url 'https://leads.qreq.com/api/brands' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Nike", "description": "Sports Brand", "website": "https://nike.com", "status": "active" }'
{
"status": "success",
"message": "Brand created successfully.",
"data": {
"id": 1,
"name": "Nike",
"description": "Sports Brand",
"website": "https://nike.com",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:10:10.000000Z",
"updated_at": "2025-11-03T07:10:10.000000Z"
}
}
PUT https://leads.qreq.com/api/brands/{brand_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Erforderlich Zeichenfolge | Brand name |
| description | Optional Zeichenfolge | Optional description |
| website | Optional Zeichenfolge | Website URL |
| status | Optional Zeichenfolge | Active or inactive |
curl --request PUT \
--url 'https://leads.qreq.com/api/brands/{brand_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Nike Updated", "description": "Updated description", "website": "https://nike.com", "status": "active" }'
--url 'https://leads.qreq.com/api/brands/{brand_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Nike Updated", "description": "Updated description", "website": "https://nike.com", "status": "active" }'
{
"status": "success",
"message": "Brand updated successfully.",
"data": {
"id": 1,
"name": "Nike Updated",
"description": "Updated description",
"website": "https://nike.com",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:10:10.000000Z",
"updated_at": "2025-11-03T07:20:10.000000Z"
}
}
DELETE https://leads.qreq.com/api/brands/{brand_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/brands/{brand_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/brands/{brand_id}' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Brand deleted successfully."
}
PATCH https://leads.qreq.com/api/brands/{brand_id}/toggle-status
curl --request PATCH \
--url 'https://leads.qreq.com/api/brands/{brand_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/brands/{brand_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Brand status updated successfully.",
"data": {
"id": 1,
"name": "Nike Updated",
"description": "Updated description",
"website": "https://nike.com",
"status": "inactive",
"created_by": 33,
"created_at": "2025-11-03T07:10:10.000000Z",
"updated_at": "2025-11-03T07:25:10.000000Z"
}
}