← Back to API Reference
/graphic_categories
Tag: graphic_categories
getUser-defined categories for organising graphics and logos
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Display name (e.g., "Team Logos", "Sponsors") |
slug | query | string | — | — | URL-safe unique identifier (e.g., "team-logos") |
description | query | string | — | — | Optional description of the category |
sort_order | query | string | — | — | Display order for sorting |
is_active | query | string | — | — | Whether the category is active/enabled |
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/graphic_categories?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postUser-defined categories for organising graphics and logos
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
graphic_categories | body | object | — | — | graphic_categories |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphic_categories" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"name": "example",
"slug": "example",
"sort_order": 0,
"is_active": true
}'Responses
201Created
patchUser-defined categories for organising graphics and logos
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Display name (e.g., "Team Logos", "Sponsors") |
slug | query | string | — | — | URL-safe unique identifier (e.g., "team-logos") |
description | query | string | — | — | Optional description of the category |
sort_order | query | string | — | — | Display order for sorting |
is_active | query | string | — | — | Whether the category is active/enabled |
created_by | query | string | — | — | — |
created_at | query | string | — | — | — |
updated_at | query | string | — | — | — |
deleted_at | query | string | — | — | Soft delete timestamp |
graphic_categories | body | object | — | — | graphic_categories |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphic_categories?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
deleteUser-defined categories for organising graphics and logos
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Display name (e.g., "Team Logos", "Sponsors") |
slug | query | string | — | — | URL-safe unique identifier (e.g., "team-logos") |
description | query | string | — | — | Optional description of the category |
sort_order | query | string | — | — | Display order for sorting |
is_active | query | string | — | — | Whether the category is active/enabled |
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/graphic_categories?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
User-defined categories for organising graphics and logos
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
name | string | text | — | — | Display name (e.g., "Team Logos", "Sponsors") |
slug | string | text | — | — | URL-safe unique identifier (e.g., "team-logos") |
description | string | text | ✓ | — | Optional description of the category |
sort_order | integer | integer | — | 0 | Display order for sorting |
is_active | boolean | boolean | — | Whether the category is active/enabled | |
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 |