POST
/
rewards_programs
/
{id}
/
tiers
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": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "minimum_points": 123,
  "perks": [
    "<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
string[]
required

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

perks
string[]
required

The perks associated with reaching this tier