Overview
The Club content type manages core organizational information for the mountain biking club, including branding assets, contact information, and club mission.This is a collection type with draft and publish enabled. Multiple clubs can be managed, and entries can be saved as drafts before publishing.
Schema Information
- Collection Name:
clubs - Singular:
club - Plural:
clubs - Draft & Publish: Enabled
Attributes
nombreClub
The official name of the club.
- Optional field
- Used for display throughout the application
logo
Club logo image used for branding.
- Single file upload
- Allowed types: images, files, videos, audios
- Recommended: Square PNG or SVG format
- Optional field
imagenPortada
Cover image for the club’s main page or profile.
- Single file upload
- Allowed types: images, files, videos, audios
- Recommended: Wide landscape format (16:9)
- Optional field
historia
Rich text content describing the club’s history and background.
- Supports rich text formatting
- Can include headings, lists, links, and formatting
- Optional field
mision
Rich text content describing the club’s mission and values.
- Supports rich text formatting
- Can include headings, lists, links, and formatting
- Optional field
emailConacto
Primary contact email address for the club.
- Email format validation
- Optional field
- Note: Field name has typo in schema (“Conacto” instead of “Contacto”)
telefonoContacto
Contact phone number for the club.
- Free text format
- Optional field
direccion
Physical address of the club.
- Free text format
- Optional field
API Endpoints
List All Clubs
Array of club entries
Get Single Club
Create Club
Update Club
Delete Club
Query Parameters
Populate Relations
To include media fields (logo, imagenPortada) in the response:Filter Published Only
Include Drafts
Media Upload
To upload logo or cover images, use the upload endpoint:The upload endpoint returns an array with the uploaded file’s ID. Use this ID to link the media to the club entry.
Example Response
Best Practices
Image Optimization
Optimize logo and cover images before upload. Recommended formats:
- Logo: PNG or SVG, max 500KB
- Cover: JPEG, max 2MB, 1920x1080px
Rich Text Content
Use the blocks editor for historia and mision to create well-structured, formatted content with headings and lists.
Contact Validation
Validate email and phone formats on the client side before submission to ensure data quality.
Draft Workflow
Use draft mode to prepare club information before making it public. Publish when content is ready.
