Skip to main content
POST
/
plan-limits
/
plans
cURL
curl --request POST \
  --url http://localhost:3000/plan-limits/plans \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "most_popular": true,
  "product_link": null,
  "max_projects": 123,
  "max_flags": 123,
  "max_environments": 123,
  "max_api_calls": 123,
  "trial_days": 123,
  "stripe_product_id": "<string>",
  "stripe_price_id": "<string>",
  "stripe_monthly_price_id": "<string>",
  "stripe_annual_price_id": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "max_projects": 123,
    "max_flags": 123,
    "max_environments": 123,
    "max_api_calls": 123,
    "trial_days": 123,
    "most_popular": false,
    "product_link": "<string>",
    "deleted_at": "2023-11-07T05:31:56Z",
    "stripe_product_id": "<string>",
    "stripe_price_id": "<string>",
    "stripe_monthly_price_id": "<string>",
    "stripe_annual_price_id": "<string>",
    "overage_rate_eur_cents": 123,
    "overage_block_size": 123,
    "grace_buffer_pct": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Optional link to the checkout page for this plan, used for completing payment

max_projects
number | null
max_flags
number | null
max_environments
number | null
max_api_calls
number | null
trial_days
number | null
stripe_product_id
string | null
stripe_price_id
string | null
stripe_monthly_price_id
string | null
stripe_annual_price_id
string | null

Response

Default Response

statusCode
number
message
string
default:OK
data
object