← Back to API Reference
/color_palette_colors
Tag: color_palette_colors
getJunction table linking colors to palettes
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
palette_id | query | string | — | — | Reference to the color palette |
color_id | query | string | — | — | Reference to the color |
position | query | string | — | — | Sort order within the palette |
created_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/color_palette_colors?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postJunction table linking colors to palettes
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
color_palette_colors | body | object | — | — | color_palette_colors |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/color_palette_colors" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"palette_id": "00000000-0000-0000-0000-000000000000",
"color_id": "00000000-0000-0000-0000-000000000000",
"position": 0
}'Responses
201Created
patchJunction table linking colors to palettes
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
palette_id | query | string | — | — | Reference to the color palette |
color_id | query | string | — | — | Reference to the color |
position | query | string | — | — | Sort order within the palette |
created_at | query | string | — | — | — |
color_palette_colors | body | object | — | — | color_palette_colors |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/color_palette_colors?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 '{"palette_id": "00000000-0000-0000-0000-000000000000"}'Responses
204No Content
deleteJunction table linking colors to palettes
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
palette_id | query | string | — | — | Reference to the color palette |
color_id | query | string | — | — | Reference to the color |
position | query | string | — | — | Sort order within the palette |
created_at | query | string | — | — | — |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/color_palette_colors?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
Junction table linking colors to palettes
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
palette_id | string | uuid | — | — | FK → color_palettes.id |
color_id | string | uuid | — | — | FK → colors.id |
position | integer | integer | — | 0 | Sort order within the palette |
created_at | string | timestamp with time zone | ✓ | now() | — |