cURL
curl --request POST \ --url https://api.pocketflows.com/rewards_programs/{id}/tiers \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "minimum_points": 123, "perks": [ { "perk_type": "text", "description": "<string>", "title": "<string>" } ] } '
{ "id": "<string>", "name": "<string>", "minimum_points": 123, "associated_color": "<string>", "perks": [ { "id": "<string>", "perk_type": "<string>", "description": "<string>", "title": "<string>", "mariana_tek_icon": "<string>" } ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the rewards program
The name of the tier
The minimum number of points to qualify for the tier
Descriptions of all the perks associated with the tier
Show child attributes
The type of perk. Must be 'text'
text
The description of the perk
The title of the perk
The created Tier object
Tier
The ID of the tier
The tier's name
The minimum number of points to reach this tier
The color associated with this tier
The perks associated with reaching this tier
The ID of the perk
The type of the perk
The MarianaTek icon for the perk