Creating and Managing Puzzles
Creating/managing puzzles allows you to create engaging puzzles through the partner API.
How Puzzles Work at Hang
Setting Up a Puzzle
1. Create a Puzzle:
URL of the image file.
Description of the Puzzle object.
Name/title of the Puzzle object.
Array of reward IDs that are associated with the puzzle. Example [1] or [1,2,3].
Instructions for earning the puzzle.
Successful response
Successful response
Example Request
Example Response
2. Update a Puzzle:
Name/title of the Puzzle object.
Description of the Puzzle object.
URL of the image file.
Array of reward IDs that are associated with the puzzle. Example [1] or [1,2,3].
Instructions for earning the puzzle.
Successful response
Successful response
Example Request
Example Response
3. Create Puzzle Pieces:
The slot/position of the puzzle piece.
The ID of the puzzle piece reward associated with this piece.
The ID of the puzzle this piece would belong to.
Successful response
Successful response
Example Request
Example Response
4. Update Puzzle Pieces:
The ID of the puzzle piece to update.
The ID of the puzzle this piece would belong to.
The ID of the puzzle piece reward associated with this piece.
The slot/position of the puzzle piece.
Successful response
Successful response
Example Request
Example Response
Managing Puzzle Progression
1. Retrieve All Available Puzzles to a Program Membership
ID of the program membership to retrieve puzzles for
A filter. Set true to only return puzzles where the program membership has made progress. Set false to only return puzzles where the program membership has not made progress. If left blank, all puzzles are returned.
Successful response
Successful response
Example Request
Example Response
2. Check Progress of a Specific Puzzle
ID of the puzzle to retrieve
ID of the program membership to retrieve puzzle for
Successful response
Successful response
Example Request
Example Response
Redeem a Completed Puzzle
ID of the puzzle to redeem
ID of the program membership to redeem the puzzle for
Successful response
The program membership is not authorized to redeem the puzzle with given puzzle_id.
The puzzle is not redeemable because it is not complete or the puzzle_id given is not correct.
Example Request
Example Response
Error Handling
Parameters and Responses
Last updated