Complete Workflow Tutorial
This guide walks you through creating a complete camp setup from scratch: instance, groups, blocks, rooms, and participants.Prerequisites
- API key or Firebase authentication token
- Base URL:
https://api.checkpoint.b-digital.uk
Step 1: Create an Instance
First, create a new camp instance (session).id - you’ll need it for all subsequent steps.
Step 2: Create Supergroups
Create the main groups for your camp.id for Step 3.
Step 3: Create Subgroups
Create subgroups within each supergroup.id - you’ll need it when creating participants.
Step 4: Create Blocks
Create accommodation blocks for your camp.id - you’ll need it for Step 5.
Step 5: Create Rooms
Create rooms within each block.id - you’ll need it when creating participants.
Step 6: Create Participants
Now create participants and assign them to groups and rooms.Step 7: Verify Your Setup
Get Instance Details
- Number of participants
- Number of groups
- Number of blocks
- Number of rooms
List All Participants
List Groups
List Blocks and Rooms
Quick Reference: ID Chain
When creating a complete setup, you’ll need these IDs in order:- Instance ID → Used for all resources
- Supergroup ID → Used when creating subgroups and participants
- Subgroup ID → Used when creating participants
- Block ID → Used when creating rooms and participants
- Room ID → Used when creating participants
Common Patterns
Creating Multiple Resources
Bulk create supergroups:Validation Rules to Remember
- Subgroups must belong to a parent supergroup
- Rooms must belong to a block
- Participant
user_idmust be unique within the same instance - Group names must be unique within the same instance
- Room numbers must be unique within the same block
- All resources must belong to the same instance
Error Handling
If you encounter errors:- 400 Bad Request - Check required fields and data types
- 409 Conflict - Duplicate name/number (e.g., room number already exists)
- 404 Not Found - Parent resource doesn’t exist (e.g., block_id not found)
- 422 Validation Error - Invalid relationships (e.g., subgroup doesn’t belong to supergroup)
Next Steps
- Update participants as needed
- Assign participants to instances
- Query and filter participants
- Manage groups and locations dynamically
