← Back to API Reference
/designs
Tag: designs
getGlobal design library for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
design_name | query | string | — | — | Name of the design set |
is_active | query | string | — | — | Whether the design is active/enabled |
is_default | query | string | — | — | Whether this is the global default design |
preview | query | string | — | — | URL to preview image |
svg | query | string | — | — | URL to SVG file |
products | query | string | — | — | Array of product IDs this design applies to |
design_show | query | string | — | — | Whether to show in design picker |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
deleted_at | query | string | — | — | Soft delete timestamp |
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/designs?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postGlobal design library for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
designs | body | object | — | — | designs |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/designs" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"design_name": "example",
"is_active": true,
"is_default": true,
"products": [],
"design_show": true
}'Responses
201Created
patchGlobal design library for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
design_name | query | string | — | — | Name of the design set |
is_active | query | string | — | — | Whether the design is active/enabled |
is_default | query | string | — | — | Whether this is the global default design |
preview | query | string | — | — | URL to preview image |
svg | query | string | — | — | URL to SVG file |
products | query | string | — | — | Array of product IDs this design applies to |
design_show | query | string | — | — | Whether to show in design picker |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
deleted_at | query | string | — | — | Soft delete timestamp |
designs | body | object | — | — | designs |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/designs?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 '{"design_name": "example"}'Responses
204No Content
deleteGlobal design library for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
design_name | query | string | — | — | Name of the design set |
is_active | query | string | — | — | Whether the design is active/enabled |
is_default | query | string | — | — | Whether this is the global default design |
preview | query | string | — | — | URL to preview image |
svg | query | string | — | — | URL to SVG file |
products | query | string | — | — | Array of product IDs this design applies to |
design_show | query | string | — | — | Whether to show in design picker |
sort_order | query | string | — | — | Display order for sorting |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
deleted_at | query | string | — | — | Soft delete timestamp |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/designs?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
Global design library for ASB Sports uniforms
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
design_name | string | text | — | — | Name of the design set |
is_active | boolean | boolean | — | Whether the design is active/enabled | |
is_default | boolean | boolean | — | Whether this is the global default design | |
preview | string | text | ✓ | — | URL to preview image |
svg | string | text | ✓ | — | URL to SVG file |
products | array | uuid[] | — | — | Array of product IDs this design applies to |
design_show | boolean | boolean | — | Whether to show in design picker | |
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() | — |
deleted_at | string | timestamp with time zone | ✓ | — | Soft delete timestamp |