The quest object is a task based element of Loyi. You can create Quests to engage consumers and reward them for finishing a quest.
Currently, the following quest types are offered:A Collection Quest is a task that asks the user to collect multiple collectibles from different collections. If they manage to collect all the collectibles they will unlock the reward.A Quiz Quest is a task that asks the user to answer multiple choice questions correctly. If they manage to surpass the threshold they will unlock the reward. Otherwise, they fail to unlock the reward.A Questionnaire Quest is a task that gets feedback from a user. They can be asked about a linear scale opinion or an open text opinion. If they answer all the questions correctly, they will unlock the reward.Quests represent structured challenges that users complete to earn rewards. They provide gamification mechanics to engage users.The Quest resource is a task based element of Loyi. Quests represent structured challenges that users complete to earn rewards. They provide gamification mechanics to engage users.Quest Types#
1.
Users progress by claiming collectibles from specified collections
Linear progression through collection steps
Unlock rewards when all collectibles have been collected
2.
Multiple-choice questions
Requires achieving a minimum score (scoreGoal) to pass
Unlock rewards when the quiz is passed
3.
Survey-style questions (always passes on submission)
Linear-scale or text-based questions
Used for gathering user feedback or information
Unlock rewards when the questionnaire is completed
Key Features#
Multi-stage Progression: Track completion percentage through steps
Reward Integration: Associate multiple rewards with quest completion
Templates: Type-specific configuration templates
Participant Management: Track user status (started/passed/failed)
Answer Validation: Automatic grading for quiz quests
Completion Messages: Customizable success messages
Data Structure#
Endpoints#
Method | Endpoint | Description |
---|
GET | /quest | Retrieve all quest |
POST | /quest | Create new quest |
GET | /quest/{id} | Get specific quest |
PUT | /quest/{id} | Update quest |
DELETE | /quest/{id} | Delete quest |
POST | /quest/{id}/accept | User starts quest |
POST | /quest/{id}/submit-answers | Submit quiz answers |
GET | /quest/{id}/answers | Retrieve user's answers |
GET | /quest/{id}/participants | List all participants |
Modified at 2025-04-14 09:35:18