curl --request PUT \
--url http://localhost:3000/plan-limits/plans/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_projects": 123,
"max_flags": 123,
"max_environments": 123,
"trial_days": 123
}
'{
"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
}
}Update an existing subscription plan by ID. Accessible only to support admins.
curl --request PUT \
--url http://localhost:3000/plan-limits/plans/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_projects": 123,
"max_flags": 123,
"max_environments": 123,
"trial_days": 123
}
'{
"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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.