---
title: "Admin Update Subscription Plan"
method: PUT
path: "/api/subscription/admin/plans/{id}"
tags: ["AdminSubscription"]
---

# Admin Update Subscription Plan

`PUT /api/subscription/admin/plans/{id}`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/subscription/admin/plans/{id}`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Path parameters

- `id` string, required

## Request body

- AdminUpsertSubscriptionPlanRequest: AdminUpsertSubscriptionPlanRequest schema
  - `plan` SubscriptionPlan, required
    - `allow_balance_pay` boolean, nullable, required
    - `allow_wallet_overflow` boolean, nullable, required
    - `created_at` integer, required
    - `creem_product_id` string, required
    - `currency` string, required
    - `custom_seconds` integer, required
    - `downgrade_group` string, required
    - `duration_unit` string, required
    - `duration_value` integer, required
    - `enabled` boolean, required
    - `free_rate_limit_window_pct` integer, required
    - `id` integer, required
    - `max_purchase_per_user` integer, required
    - `nowpayments_plan_id` string, required
    - `price_amount` number, double, required
    - `quota_reset_custom_seconds` integer, required
    - `quota_reset_period` string, required
    - `sort_order` integer, required
    - `stripe_price_id` string, required
    - `subtitle` string, required
    - `title` string, required
    - `total_amount` integer, required
    - `updated_at` integer, required
    - `upgrade_group` string, required
    - `waffo_pancake_product_id` string, required

## Response `200`

OK

- MessageResponse
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
