---
title: "Set Plan"
method: POST
path: "/admin/console/users/{user_id}/plan"
tags: ["admin-console"]
---

# Set Plan

`POST /admin/console/users/{user_id}/plan`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/admin/console/users/{user_id}/plan`
- Auth: HTTP bearer

Set a plan and its end date. A paid plan given here needs an end date unless the account has a live Razorpay
subscription, so a free grant cannot be left running forever by accident.

## Path parameters

- `user_id` string, required

## Request body

- PlanBody
  - `plan` string, required
  - `access_until` string, nullable
  - `acknowledge_billing` boolean
  - `reason` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openproof/apis/openproof-api.md) · [All operations](https://skmtc.dev/openproof/apis/openproof-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openproof/apis/openproof-api/revisions/ddd0cac7c37e?raw)
