← Back to API Reference

/product_sizes

Tag: product_sizes

getSVG-based size definitions per product for the uniform builder

Parameters

NameInTypeFormatRequiredDescription
idquerystring
product_idquerystringFK to products — the product this size belongs to
labelquerystringSize label (e.g., "S", "M", "L", "XL", or custom)
svg_pathquerystringExtracted SVG path d attribute for use in the 2D canvas
svg_urlquerystringPublic S3 URL to the uploaded SVG file
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
selectquerystringFiltering Columns
orderquerystringOrdering
RangeheaderstringLimiting and Pagination
Range-UnitheaderstringLimiting and Pagination
offsetquerystringLimiting and Pagination
limitquerystringLimiting and Pagination
PreferheaderstringPreference

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

NameInTypeFormatRequiredDescription
product_sizesbodyobjectproduct_sizes
selectquerystringFiltering Columns
PreferheaderstringPreference

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

NameInTypeFormatRequiredDescription
idquerystring
product_idquerystringFK to products — the product this size belongs to
labelquerystringSize label (e.g., "S", "M", "L", "XL", or custom)
svg_pathquerystringExtracted SVG path d attribute for use in the 2D canvas
svg_urlquerystringPublic S3 URL to the uploaded SVG file
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
product_sizesbodyobjectproduct_sizes
PreferheaderstringPreference

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

NameInTypeFormatRequiredDescription
idquerystring
product_idquerystringFK to products — the product this size belongs to
labelquerystringSize label (e.g., "S", "M", "L", "XL", or custom)
svg_pathquerystringExtracted SVG path d attribute for use in the 2D canvas
svg_urlquerystringPublic S3 URL to the uploaded SVG file
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
PreferheaderstringPreference

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

ColumnTypeFormatNullableDefaultNotes
idPK
stringuuidextensions.uuid_generate_v4()This is a Primary Key.
product_id
stringuuidFK → products.id
label
stringtextSize label (e.g., "S", "M", "L", "XL", or custom)
svg_path
stringtextExtracted SVG path d attribute for use in the 2D canvas
svg_url
stringtextPublic S3 URL to the uploaded SVG file
sort_order
integerinteger0Display order for sorting
created_by
stringuuid
created_at
stringtimestamp with time zonenow()
updated_at
stringtimestamp with time zonenow()