Root Category
Retrieves the root category information.
Request
GET /v2/admin/categories/root
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Example
curl --request GET \
--url '\{\{baseUrl\}\}/v2/admin/categories/root' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Response
{
"id": "root",
"parent_id": null,
"name": {
"en": "Root",
"tr": "Kök"
},
"path": "root",
"int_id": 0,
"image_svg": "data:image/svg+xml;base64,...",
"is_leaf": false,
"created_at": "2024-03-20T10:00:00Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique ID of the root category |
parent_id | null | Always null for root category |
name | object | Category name translations |
name.en | string | Category name in English |
name.tr | string | Category name in Turkish |
path | string | URL path of the category |
int_id | integer | Numeric ID of the category (0 for root) |
image_svg | string | SVG data of the category icon |
is_leaf | boolean | Whether the category contains subcategories |
created_at | string | Category creation date |
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Root category details retrieved successfully |
| 401 | Unauthorized - Invalid or missing authentication token |
| 500 | Internal Server Error |