← Back to API Reference
/fonts
Tag: fonts
getGlobal library of fonts for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Font family name (e.g., "Roboto", "Arial Black") |
code | query | string | — | — | Unique font code identifier (e.g., "ROBOTO", "ARIALBLK") |
category | query | string | — | — | Font category (serif, sans-serif, display, handwriting, monospace) |
style | query | string | — | — | Font style (normal, italic, oblique) |
weight | query | string | — | — | Font weight (light, regular, medium, bold, black) |
file_url | query | string | — | — | URL to the font file (TTF, OTF, WOFF) |
preview_url | query | string | — | — | URL to a preview image of the font |
description | query | string | — | — | Optional font description or notes |
is_active | query | string | — | — | Whether the font 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/fonts?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postGlobal library of fonts for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
fonts | body | object | — | — | fonts |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"name": "example",
"code": "example",
"category": "example",
"is_active": true,
"sort_order": 0
}'Responses
201Created
patchGlobal library of fonts for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Font family name (e.g., "Roboto", "Arial Black") |
code | query | string | — | — | Unique font code identifier (e.g., "ROBOTO", "ARIALBLK") |
category | query | string | — | — | Font category (serif, sans-serif, display, handwriting, monospace) |
style | query | string | — | — | Font style (normal, italic, oblique) |
weight | query | string | — | — | Font weight (light, regular, medium, bold, black) |
file_url | query | string | — | — | URL to the font file (TTF, OTF, WOFF) |
preview_url | query | string | — | — | URL to a preview image of the font |
description | query | string | — | — | Optional font description or notes |
is_active | query | string | — | — | Whether the font 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 |
fonts | body | object | — | — | fonts |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts?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
deleteGlobal library of fonts for ASB Sports uniforms
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
name | query | string | — | — | Font family name (e.g., "Roboto", "Arial Black") |
code | query | string | — | — | Unique font code identifier (e.g., "ROBOTO", "ARIALBLK") |
category | query | string | — | — | Font category (serif, sans-serif, display, handwriting, monospace) |
style | query | string | — | — | Font style (normal, italic, oblique) |
weight | query | string | — | — | Font weight (light, regular, medium, bold, black) |
file_url | query | string | — | — | URL to the font file (TTF, OTF, WOFF) |
preview_url | query | string | — | — | URL to a preview image of the font |
description | query | string | — | — | Optional font description or notes |
is_active | query | string | — | — | Whether the font 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/fonts?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
Global library of fonts for ASB Sports uniforms
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | extensions.uuid_generate_v4() | This is a Primary Key. |
name | string | text | — | — | Font family name (e.g., "Roboto", "Arial Black") |
code | string | text | — | — | Unique font code identifier (e.g., "ROBOTO", "ARIALBLK") |
category | string | text | — | sans-serif | Font category (serif, sans-serif, display, handwriting, monospace) |
style | string | text | ✓ | normal | Font style (normal, italic, oblique) |
weight | string | text | ✓ | regular | Font weight (light, regular, medium, bold, black) |
file_url | string | text | ✓ | — | URL to the font file (TTF, OTF, WOFF) |
preview_url | string | text | ✓ | — | URL to a preview image of the font |
description | string | text | ✓ | — | Optional font description or notes |
is_active | boolean | boolean | — | Whether the font 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 |