← Back to API Reference
/product_sizes
Tag: product_sizes
getSVG-based size definitions per product for the uniform builder
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
product_id | query | string | — | — | FK to products — the product this size belongs to |
label | query | string | — | — | Size label (e.g., "S", "M", "L", "XL", or custom) |
svg_path | query | string | — | — | Extracted SVG path d attribute for use in the 2D canvas |
svg_url | query | string | — | — | Public S3 URL to the uploaded SVG file |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
select | query | string | — | — | Filtering Columns |
order | query | string | — | — | Ordering |
Range | header | string | — | — | Limiting and Pagination |
Range-Unit | header | string | — | — | Limiting and Pagination |
offset | query | string | — | — | Limiting and Pagination |
limit | query | string | — | — | Limiting and Pagination |
Prefer | header | string | — | — | Preference |
Example
bash
curl "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/product_sizes?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postSVG-based size definitions per product for the uniform builder
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
product_sizes | body | object | — | — | product_sizes |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/product_sizes" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"product_id": "00000000-0000-0000-0000-000000000000",
"label": "example",
"svg_path": "example",
"sort_order": 0
}'Responses
201Created
patchSVG-based size definitions per product for the uniform builder
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
product_id | query | string | — | — | FK to products — the product this size belongs to |
label | query | string | — | — | Size label (e.g., "S", "M", "L", "XL", or custom) |
svg_path | query | string | — | — | Extracted SVG path d attribute for use in the 2D canvas |
svg_url | query | string | — | — | Public S3 URL to the uploaded SVG file |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
product_sizes | body | object | — | — | product_sizes |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/product_sizes?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{"product_id": "00000000-0000-0000-0000-000000000000"}'Responses
204No Content
deleteSVG-based size definitions per product for the uniform builder
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
product_id | query | string | — | — | FK to products — the product this size belongs to |
label | query | string | — | — | Size label (e.g., "S", "M", "L", "XL", or custom) |
svg_path | query | string | — | — | Extracted SVG path d attribute for use in the 2D canvas |
svg_url | query | string | — | — | Public S3 URL to the uploaded SVG file |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/product_sizes?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
SVG-based size definitions per product for the uniform builder
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
product_id | string | uuid | — | — | FK → products.id |
label | string | text | — | — | Size label (e.g., "S", "M", "L", "XL", or custom) |
svg_path | string | text | — | — | Extracted SVG path d attribute for use in the 2D canvas |
svg_url | string | text | ✓ | — | Public S3 URL to the uploaded SVG file |
sort_order | integer | integer | — | 0 | Display order for sorting |
created_by | string | uuid | ✓ | — | — |
created_at | string | timestamp with time zone | ✓ | now() | — |
updated_at | string | timestamp with time zone | ✓ | now() | — |