← Back to API Reference

/graphics

Tag: graphics

getLibrary of logos and graphic assets for the uniform builder

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringDisplay name of the graphic (e.g., "Main Team Logo")
codequerystringUnique uppercase identifier (e.g., "MAIN-LOGO")
category_idquerystringFK to graphic_categories for filtering
file_urlquerystringPublic S3 URL in the library/ folder
file_formatquerystringFile format: jpg, png, svg, or webp
file_sizequerystringFile size in bytes
widthquerystringImage width in pixels (null for SVG)
heightquerystringImage height in pixels (null for SVG)
descriptionquerystringOptional description or notes
tagsquerystringFree-form tags for finer-grained filtering
is_activequerystringWhether the graphic is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
selectquerystringFiltering Columns
orderquerystringOrdering
RangeheaderstringLimiting and Pagination
Range-UnitheaderstringLimiting and Pagination
offsetquerystringLimiting and Pagination
limitquerystringLimiting and Pagination
PreferheaderstringPreference

Example

bash
curl "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphics?select=*&limit=10" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

200OK
206Partial Content

postLibrary of logos and graphic assets for the uniform builder

Parameters

NameInTypeFormatRequiredDescription
graphicsbodyobjectgraphics
selectquerystringFiltering Columns
PreferheaderstringPreference

Example

bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphics" \
  -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",
  "file_url": "example",
  "file_format": "example",
  "is_active": true
}'

Responses

201Created

patchLibrary of logos and graphic assets for the uniform builder

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringDisplay name of the graphic (e.g., "Main Team Logo")
codequerystringUnique uppercase identifier (e.g., "MAIN-LOGO")
category_idquerystringFK to graphic_categories for filtering
file_urlquerystringPublic S3 URL in the library/ folder
file_formatquerystringFile format: jpg, png, svg, or webp
file_sizequerystringFile size in bytes
widthquerystringImage width in pixels (null for SVG)
heightquerystringImage height in pixels (null for SVG)
descriptionquerystringOptional description or notes
tagsquerystringFree-form tags for finer-grained filtering
is_activequerystringWhether the graphic is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
graphicsbodyobjectgraphics
PreferheaderstringPreference

Example

bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphics?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

deleteLibrary of logos and graphic assets for the uniform builder

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringDisplay name of the graphic (e.g., "Main Team Logo")
codequerystringUnique uppercase identifier (e.g., "MAIN-LOGO")
category_idquerystringFK to graphic_categories for filtering
file_urlquerystringPublic S3 URL in the library/ folder
file_formatquerystringFile format: jpg, png, svg, or webp
file_sizequerystringFile size in bytes
widthquerystringImage width in pixels (null for SVG)
heightquerystringImage height in pixels (null for SVG)
descriptionquerystringOptional description or notes
tagsquerystringFree-form tags for finer-grained filtering
is_activequerystringWhether the graphic is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
PreferheaderstringPreference

Example

bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/graphics?id=eq.YOUR_ID" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

204No Content

Schema

Library of logos and graphic assets for the uniform builder

ColumnTypeFormatNullableDefaultNotes
idPK
stringuuidextensions.uuid_generate_v4()This is a Primary Key.
name
stringtextDisplay name of the graphic (e.g., "Main Team Logo")
code
stringtextUnique uppercase identifier (e.g., "MAIN-LOGO")
category_id
stringuuidFK → graphic_categories.id
file_url
stringtextPublic S3 URL in the library/ folder
file_format
stringtextFile format: jpg, png, svg, or webp
file_size
integerintegerFile size in bytes
width
integerintegerImage width in pixels (null for SVG)
height
integerintegerImage height in pixels (null for SVG)
description
stringtextOptional description or notes
tags
arraytext[]Free-form tags for finer-grained filtering
is_active
booleanbooleanWhether the graphic is active/enabled
sort_order
integerinteger0Display order for sorting
created_by
stringuuid
created_at
stringtimestamp with time zonenow()
updated_at
stringtimestamp with time zonenow()
deleted_at
stringtimestamp with time zoneSoft delete timestamp