Skip to main content
POST
/
rewards_programs
/
{id}
/
tiers
Create a tier
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the rewards program

Body

application/json
name
string
required

The name of the tier

minimum_points
integer
required

The minimum number of points to qualify for the tier

perks
object[]

Descriptions of all the perks associated with the tier

Response

200 - application/json

The created Tier object

id
string
required

The ID of the tier

name
string
required

The tier's name

minimum_points
integer
required

The minimum number of points to reach this tier

associated_color
string | null
required

The color associated with this tier

perks
(object | string)[]
required

The perks associated with reaching this tier