---
title: "Extend, end, reset, exempt or unexempt one team's Free period (two-factor session + reason; 409 reason unlimited_org for the platform owner's teams); audited with {before, after}. Extend, reset and exempt lift a pause at once"
method: POST
path: "/operator/organizations/{organizationId}/trial"
tags: ["Operator"]
---

# Extend, end, reset, exempt or unexempt one team's Free period (two-factor session + reason; 409 reason unlimited_org for the platform owner's teams); audited with {before, after}. Extend, reset and exempt lift a pause at once

`POST /operator/organizations/{organizationId}/trial`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/operator/organizations/{organizationId}/trial`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `organizationId` string, uuid, required

## Request body

- object
  - `action` 'extend' | 'end' | 'reset' | 'exempt' | 'unexempt', required
  - `days` integer: extend: days added to the later of the end and now
  - `endsAt` string, date-time: extend: the new end (instead of days)
  - `reason` string, required: required: shown in the audit log verbatim
  - `requestId` string: idempotency key: a retried request with the same id changes nothing and writes no second audit entry

## Response `200`

Done

- object
  - `status` 'ok', required
  - `replay` boolean, required
  - `trial` object, nullable, required
    - `startedAt` string, nullable: ISO-8601 timestamp
    - `endsAt` string, nullable: ISO-8601 timestamp
    - `endedAt` string, nullable: ISO-8601 timestamp
    - `endReason` string, nullable
    - `siteCapAt` string, nullable: ISO-8601 timestamp
    - `pausedAt` string, nullable: ISO-8601 timestamp
    - `retentionUntil` string, nullable: ISO-8601 timestamp
    - `exemptAt` string, nullable: ISO-8601 timestamp
    - `exemptReason` string, nullable
  - `resumed` boolean, required: a pause was lifted: the suspension worker restarts what was running
  - `state` object, nullable: the Free period of the team as it reads now
    - `state` 'none' | 'active' | 'site_cap' | 'ended' | 'paused' | 'exempt', required
    - `startedAt` string, nullable, required: ISO-8601 timestamp
    - `endsAt` string, nullable, required: ISO-8601 timestamp
    - `endedAt` string, nullable, required: ISO-8601 timestamp
    - `endReason` 'time' | 'sites' | 'usage' | 'operator' | 'null', nullable, required
    - `sitesDeployed` integer, required
    - `sitesMax` integer, nullable, required
    - `pauseAt` string, nullable, required: ISO-8601 timestamp
    - `retentionUntil` string, nullable, required: ISO-8601 timestamp
    - `paymentsAvailable` boolean, required
    - `mode` 'off' | 'dry_run' | 'on'
    - `showCountdown` boolean
    - `usageCapped` object, nullable
      - `metric` 'requests' | 'bandwidthGb' | 'cpuHours', required
      - `at` string, required: ISO-8601 timestamp

## 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)
- `409`: The platform owner's team (code conflict, details.reason unlimited_org)
- `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)
