---
title: "Bring exactly the confirmed projects/databases of Free organizations down to their ceiling (running ones restart); per-item outcomes"
method: POST
path: "/operator/free-resize"
tags: ["Operator"]
---

# Bring exactly the confirmed projects/databases of Free organizations down to their ceiling (running ones restart); per-item outcomes

`POST /operator/free-resize`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/operator/free-resize`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Request body

- object
  - `items` object[], required: exactly the items the operator confirmed from the dry run; one no longer above its ceiling is left alone
    - `organizationId` string, uuid, required
    - `kind` 'project' | 'database', required
    - `id` string, uuid, required
  - `reason` string, required: required: shown in the audit log verbatim

## Response `200`

Applied

- object
  - `status` 'ok', required
  - `results` object[], required
    - `kind` 'project' | 'database', required
    - `id` string, uuid, required
    - `name` string, required
    - `outcome` 'resized' | 'skipped' | 'failed', required
    - `target` object, nullable, required
      - `cpus` number, required
      - `memoryMb` integer, required
    - `restarted` boolean, required
    - `error` string, nullable, required
    - `organizationId` string, uuid, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `403`: An action on an operator-console session older than 5 minutes (code forbidden, details.reauthenticate: sign in again at /admin/login), or an operator removed since the session was resolved
- `404`: Not found (code not_found); also the answer to any request without a live operator-console session (no admin cookie, a dashboard session, an API/MCP key or OAuth token, or a caller who is not a platform operator)
- `429`: Too many requests (code rate_limited); see Retry-After
- `501`: Not available on this server (code not_configured)

---

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