← Back to API Reference
/color_palettes
Tag: color_palettes
getCustomer/club color palette collections
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Palette name |
cust_number | query | string | — | — | Customer reference number |
type | query | string | — | — | Palette type (Primary, Secondary, etc.) |
description | query | string | — | — | Optional palette description |
is_active | query | string | — | — | Whether the palette is active/enabled |
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/color_palettes?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postCustomer/club color palette collections
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
color_palettes | body | object | — | — | color_palettes |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/color_palettes" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"name": "example",
"type": "example",
"is_active": true,
"sort_order": 0
}'Responses
201Created
patchCustomer/club color palette collections
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Palette name |
cust_number | query | string | — | — | Customer reference number |
type | query | string | — | — | Palette type (Primary, Secondary, etc.) |
description | query | string | — | — | Optional palette description |
is_active | query | string | — | — | Whether the palette is active/enabled |
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 |
color_palettes | body | object | — | — | color_palettes |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/color_palettes?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 '{"name": "example"}'Responses
204No Content
deleteCustomer/club color palette collections
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Palette name |
cust_number | query | string | — | — | Customer reference number |
type | query | string | — | — | Palette type (Primary, Secondary, etc.) |
description | query | string | — | — | Optional palette description |
is_active | query | string | — | — | Whether the palette is active/enabled |
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/color_palettes?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
Customer/club color palette collections
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
name | string | text | — | — | Palette name |
cust_number | string | text | ✓ | — | Customer reference number |
type | string | text | — | Primary | Palette type (Primary, Secondary, etc.) |
description | string | text | ✓ | — | Optional palette description |
is_active | boolean | boolean | — | Whether the palette is active/enabled | |
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 |