---
title: "Change Account's Hosting Plan"
method: PUT
path: "/v1/account/hosting_plan"
tags: ["Account"]
---

# Change Account's Hosting Plan

`PUT /v1/account/hosting_plan`

Change the account's hosting plan and generate an order and invoice for the new plan

## Query parameters

- `preview` boolean

## Request body

- UpdateAccountHostingPlanRequest
  - `billing_product_id` integer, required — ID of the chosen product
  - `billing_cycle` 'Monthly' | 'Annual' — Billing cycle to change to (if not passed, the current billing cycle will be used)

## Response `200`

OK

- UpdateAccountHostingPlanResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object, required
    - `order_id` integer — ID of the order that was created
    - `invoice_id` integer — ID of the invoice that was created
    - `total` number, required — Total amount of the invoice

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `405` — Invalid input
- `412` — Precondition failed
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/revisions/db0dcbbc5764/schema)
