Achievements
Example Use Cases
Section titled “Example Use Cases”-
Mike runs a youth Gymnastics club. His coaches need to record progress against their group members to keep track of their progress. The parents want to check their child’s progress so they feel engaged with the club.
-
Jon runs external Canoeing courses. Various skills need to be demonstrated by participants to pass the course, as well as evidence outside the course demonstrating other skills such as coaching and leading peers on suitable rivers. This information needs to be collated before the qualification can be awarded.
-
Sally leads a group of Accountants in the North East offering training courses in Social Media. She has devised a set of qualifications that she wants to track progress towards.
Achievement Types
Section titled “Achievement Types”Achievement types (or templates) are the definition of the qualification. At their most basic they are a name and one or more steps. Each step is a milestone in the achievement.
Achievements
Section titled “Achievements”Achievements are the individual records that connect a contact to their achievement.
Create/start a new achievement for a contact
Section titled “Create/start a new achievement for a contact”| Parameter | Description |
|---|---|
achievement_type_ref | Required. Reference to the achievement type. |
contact_ref | Required. Reference to the contact. |
POST https://api.sheepcrm.com/api/v1/$FLOCK/achievement/Authorization: Bearer $API_KEYContent-Type: application/json
{ "achievement_type_ref": "/example/achievement_type/5fa92cd780859e70b99a5fad/", "contact_ref": "/example/person/581b6258d406947c8a8f07d4/"}Complete a step
Section titled “Complete a step”By step number:
PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/complete_step/Authorization: Bearer $API_KEYContent-Type: application/json
{"number": 3}By step name:
PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/complete_step/Authorization: Bearer $API_KEYContent-Type: application/json
{"step": "Squat on stretch jump off cross box or horse."}Uncomplete a step
Section titled “Uncomplete a step”By step number:
PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/uncomplete_step/Authorization: Bearer $API_KEYContent-Type: application/json
{"number": 3}By step name:
PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/uncomplete_step/Authorization: Bearer $API_KEYContent-Type: application/json
{"step": "Squat on stretch jump off cross box or horse."}Reset all steps
Section titled “Reset all steps”PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/reset_steps/Authorization: Bearer $API_KEYComplete all steps
Section titled “Complete all steps”PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/complete_all_steps/Authorization: Bearer $API_KEYFinish / Complete an Achievement
Section titled “Finish / Complete an Achievement”Once all the steps have been completed, an achievement can be “finished” or “completed”. A finished achievement locks the steps from further changes. A finished achievement creates a sheep event which can be used for sending an achievement email or other data event.
PUT https://api.sheepcrm.com/api/v1/$FLOCK/achievement/{uid}/finish/Authorization: Bearer $API_KEY