Product Types API
Configure product type definitions for the data catalog.
Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
| GET | /product-types | List product types |
| POST | /product-types | Create product type |
| GET | /product-types/{id} | Get product type |
| PATCH | /product-types/{id} | Update product type |
| DELETE | /product-types/{id} | Delete product type |
Default Product Types
| Type | Icon | Description |
|---|---|---|
table | 📊 | Database table |
view | 👁️ | Database view |
dashboard | 📈 | BI dashboard |
api | 🔌 | API endpoint |
report | 📄 | Static report |
dataset | 📦 | Data file/dataset |
model | 🤖 | ML model |
List Product Types
GET /product-types
Response
[
{
"id": "...",
"name": "Table",
"slug": "table",
"icon": "table",
"color": "#4F46E5",
"is_system": true,
"created_at": "2025-01-01T00:00:00Z"
}
]
Create Product Type
POST /product-types
{
"name": "Notebook",
"slug": "notebook",
"icon": "notebook",
"color": "#F59E0B"
}
Update Product Type
PATCH /product-types/{product_type_id}
{
"color": "#10B981"
}