API referenceSections

Apply a subscription change (plan, revision, state, expiry, overrides)

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/customers/{cid}/subscription

Apply a subscription change (plan, revision, state, expiry, overrides)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • plan_id string optional
  • latest_revision boolean optional
  • state string optional
    Allowed values: "" "active" "suspended"
  • expires_at string (date-time) | null optional
  • clear_expiry boolean optional
  • overrides Limits optional
    • max_sites integer required

      0 means no limit

    • max_databases integer required
    • max_apps integer required
    • max_mailboxes integer optional

      0 means no limit

    • max_database_users integer optional

      Extra database users (ADR 0067); 0 means no limit

    • pitr_days integer optional

      Days point-in-time recovery reaches back for the account's databases (ADR 0183); 0 is not offered, at most 35

    • max_protected_dirs integer optional

      Password-protected folders over all sites (ADR 0109); 0 means no limit

    • disk_mb integer (int64) required

      Disk limit, MB; held as disk_policy says (ADR 0070)

    • bandwidth_gb integer (int64) required

      This month's traffic limit, GB; judged as bandwidth_policy says

    • disk_policy string optional

      Past disk_mb: block (FSRM hard quota), notify (emails at 80/95/100%), suspend after grace_days. Empty is notify

      Allowed values: "block" "notify" "suspend"
    • bandwidth_policy string optional

      Past bandwidth_gb this month. Empty is notify

      Allowed values: "notify" "suspend"
    • grace_days integer optional

      Days past a suspend-policy limit before suspension

      • minimum 0
      • maximum 90
    • malware_scan string optional

      How often sites are scanned for malware (ADR 0084). Empty follows the provider default

      Allowed values: "off" "daily" "weekly"
    • runtimes array<string> required
      Allowed values: "php" "aspnet" "asp" "node" "dotnet" "python" "java" "go" "wordpress" "container"
    • php_memory_mb integer optional

      Highest memory_limit a site may set, MB; 0 no cap (ADR 0062)

    • php_upload_mb integer optional

      Highest upload_max_filesize and post_max_size, MB; 0 no cap

    • mail_out_per_hour integer optional

      Messages a mailbox may send per hour; 0 no cap (ADR 0073)

    • mail_out_per_hour_domain integer optional

      Messages a whole mail domain may send per hour; 0 no cap (ADR 0073)

    • site_cpu_percent integer optional

      Each site's pool CPU cap, % of the machine, 5-100; 0 no cap (ADR 0091). Not with site_cpu_cores

    • site_cpu_cores number optional

      Each site's pool CPU cap in cores, 0.5-256 (ADR 0126): turned into the share of each server when applied (cores / server's logical processors, rounded up, at least one core's worth, at most 100%). Not with site_cpu_percent. A new plan that leaves out every CPU, memory and auto_heal key gets 2 cores, 2048 MB and both; a change that leaves them out keeps them

    • app_cpu_cores number optional

      Each application's CPU cap in cores, 0.5-256 (ADR 0126); not with app_cpu_percent

    • site_memory_mb integer optional

      Each site's pool private memory, 128-65536 MB; 0 no cap

    • app_cpu_percent integer optional

      Each Node.js/Python/.NET application's hard CPU cap (Windows job), 5-100; 0 no cap

    • app_memory_mb integer optional

      Each application's job memory, 128-65536 MB, ended and restarted past it; 0 no cap

    • auto_heal string optional

      What the panel does by itself with an overloaded site; empty follows the provider's policy

      Allowed values: "off" "throttle" "recycle" "both"
    • waf string optional

      on: the account may turn on a site's web application firewall (ADR 0106)

      Allowed values: "" "on" "off"
    • waf_static_bypass string optional

      off: the account's sites may not let static files skip the firewall (ADR 0106, D16); empty or on allows it, each site still starts with it off

      Allowed values: "" "on" "off"
    • perf_auto string optional

      What the automatic tuner does for the account's sites (ADR 0116); empty is auto

      Allowed values: "" "auto" "suggest" "off"
    • perf_warm string optional

      on: the tuner may keep pools always running (ADR 0116)

      Allowed values: "" "on" "off"
    • php_open_basedir string optional

      on: the account's new PHP sites get open_basedir; empty or off leaves it out (ADR 0120). Existing sites keep theirs

      Allowed values: "" "on" "off"
    • restore_tests string optional

      on: the seller's periodic restore tests include the account when its policy covers plans that opt in, and the account sees its results (ADR 0154)

      Allowed values: "" "on" "off"
    • wp_cache string optional

      off keeps the account's WordPress sites from the page and object cache; empty or on allows them (ADR 0119)

      Allowed values: "" "on" "off"
    • wp_cache_mb integer optional

      Memory of each WordPress site's object cache, 16-1024 MB; 0 is 64 (ADR 0119)

      • minimum 0
      • maximum 1024
    • max_previews integer optional

      Git previews the account may have at once (ADR 0160); 0 is none

      • minimum 0
      • maximum 1000
    • preview_disk_mb integer optional

      Disk each preview may use, MB; 0 no cap of its own

      • minimum 0
    • max_containers integer optional

      Sites run by a Windows container, when runtimes has container (ADR 0162); 0 means no limit

      • minimum 0
    • container_image_mb integer optional

      Largest container image, 256-65536 MB; 0 is 12288 (ADR 0162, 0194)

      • minimum 0
      • maximum 65536
    • container_isolation string optional

      hyperv: every container of the account runs with Hyper-V isolation, and a server without Hyper-V runs none (no fallback, ADR 0004); empty or process lets the owner choose

      Allowed values: "" "process" "hyperv"
    • container_trust string optional

      Trust profile of the account's containers (ADR 0190): trusted (the provider's own code; only a root tenant's plan), standard (process isolation and every network isolation layer, or none), hostile (Hyper-V isolation, or none; never a shared kernel). Empty: hostile when container_isolation is hyperv, else standard. PLAN_TRUST_INVALID, PLAN_TRUST_PROVIDER_ONLY

      Allowed values: "" "trusted" "standard" "hostile"
Example
{
  "plan_id": "string",
  "latest_revision": true,
  "state": "",
  "expires_at": "2026-01-01T00:00:00Z",
  "clear_expiry": true,
  "overrides": {
    "max_sites": 0,
    "max_databases": 0,
    "max_apps": 0,
    "max_mailboxes": 0,
    "max_database_users": 0,
    "pitr_days": 0,
    "max_protected_dirs": 0,
    "disk_mb": 0,
    "bandwidth_gb": 0,
    "disk_policy": "block",
    "bandwidth_policy": "notify",
    "grace_days": 0,
    "malware_scan": "off",
    "runtimes": [
      "php"
    ],
    "php_memory_mb": 0,
    "php_upload_mb": 0,
    "mail_out_per_hour": 0,
    "mail_out_per_hour_domain": 0,
    "site_cpu_percent": 0,
    "site_cpu_cores": 0,
    "app_cpu_cores": 0,
    "site_memory_mb": 0,
    "app_cpu_percent": 0,
    "app_memory_mb": 0,
    "auto_heal": "off",
    "waf": "",
    "waf_static_bypass": "",
    "perf_auto": "",
    "perf_warm": "",
    "php_open_basedir": "",
    "restore_tests": "",
    "wp_cache": "",
    "wp_cache_mb": 0,
    "max_previews": 0,
    "preview_disk_mb": 0,
    "max_containers": 0,
    "container_image_mb": 0,
    "container_isolation": "",
    "container_trust": ""
  }
}

Responses

200 Applied

Content type: application/json

  • customer Customer required
    • tenant_id string required
    • name string required
    • subscription Subscription required
      • id string required
      • owner_tenant_id string required
      • tenant_id string required
      • plan_id string required
      • plan_revision integer required
      • server_id string required
      • state string required
        Allowed values: "active" "suspended"
      • expires_at string (date-time) | null required
      • overrides Limits required

        Fields of Limits are shown above.

      • suspend_reason string optional

        Why it is suspended, shown to the owner (ADR 0055)

      • suspend_cause string optional

        provider: the provider suspended a reseller's customer; only the provider can resume it. overuse: past a suspend-policy limit (ADR 0070); lifted once back under

        Allowed values: "" "manual" "expired" "reseller" "provider" "overuse"
      • created_at string (date-time) required
      • updated_at string (date-time) required
    • plan_name string required
    • limits Limits required

      Fields of Limits are shown above.

    • usage Usage required
      • sites integer required
      • databases integer required
      • apps integer required
      • containers integer optional

        Sites run by a container (ADR 0162)

      • mailboxes integer optional
      • database_users integer optional
      • disk_bytes integer (int64) required
      • traffic_bytes integer (int64) required

        Sent this month

      • measured_at string (date-time) | null required
    • kit KitSummary | null optional
      • state string required
        Allowed values: "running" "done" "stopped"
      • done integer required
      • total integer required
      • waiting integer required
      • failed integer required
    • ending Ending optional

      How far an account's end got (ADR 0131). The end runs in the background: a failed step is tried again at next_try_at (1, 2, 4, 8 then every 15 minutes), or at once when the end is asked again.

      • state string required
        Allowed values: "ending" "ended" "not_ending"
      • tenant_id string required
      • ref string optional
      • reseller boolean required
      • started_at string (date-time) optional
      • ended_at string (date-time) optional
      • steps array<EndStep> required
        • name string required
          Allowed values: "customers" "sites" "databases" "mail" "caches" "dns" "backups"
        • state string required
          Allowed values: "waiting" "running" "done" "failed"
        • total integer required
        • done integer required
        • error StepError optional
          • code string required
          • message string required
          • retryable boolean required
      • attempts integer required

        Passes that stopped on an error

      • last_error StepError optional

        Fields of StepError are shown above.

      • next_try_at string (date-time) optional
      • remote_backups_left array<RemoteBackupLeft> optional

        With keep_backups_days 0: off-machine copies given up because their target did not answer; the end completes without them

        • backup_id string required
        • target string required

          sftp, s3, or the cloud provider

        • where string optional

          Folder or bucket the copy is in, as the backup settings named it (no secret)

        • created_at string (date-time) required
        • code string required

          Why its deletion failed, e.g. BACKUP_DELETE_FAILED, SERVER_TIMEOUT

        • at string (date-time) required
  • exceeded array<object> required
    • limit string required
    • used integer required
    • max integer required
  • applied boolean required
Example
{
  "customer": {
    "tenant_id": "string",
    "name": "string",
    "subscription": {
      "id": "string",
      "owner_tenant_id": "string",
      "tenant_id": "string",
      "plan_id": "string",
      "plan_revision": 0,
      "server_id": "string",
      "state": "active",
      "expires_at": "2026-01-01T00:00:00Z",
      "overrides": {
        "max_sites": 0,
        "max_databases": 0,
        "max_apps": 0,
        "max_mailboxes": 0,
        "max_database_users": 0,
        "pitr_days": 0,
        "max_protected_dirs": 0,
        "disk_mb": 0,
        "bandwidth_gb": 0,
        "disk_policy": "block",
        "bandwidth_policy": "notify",
        "grace_days": 0,
        "malware_scan": "off",
        "runtimes": [
          "php"
        ],
        "php_memory_mb": 0,
        "php_upload_mb": 0,
        "mail_out_per_hour": 0,
        "mail_out_per_hour_domain": 0,
        "site_cpu_percent": 0,
        "site_cpu_cores": 0,
        "app_cpu_cores": 0,
        "site_memory_mb": 0,
        "app_cpu_percent": 0,
        "app_memory_mb": 0,
        "auto_heal": "off",
        "waf": "",
        "waf_static_bypass": "",
        "perf_auto": "",
        "perf_warm": "",
        "php_open_basedir": "",
        "restore_tests": "",
        "wp_cache": "",
        "wp_cache_mb": 0,
        "max_previews": 0,
        "preview_disk_mb": 0,
        "max_containers": 0,
        "container_image_mb": 0,
        "container_isolation": "",
        "container_trust": ""
      },
      "suspend_reason": "string",
      "suspend_cause": "",
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z"
    },
    "plan_name": "string",
    "limits": {
      "max_sites": 0,
      "max_databases": 0,
      "max_apps": 0,
      "max_mailboxes": 0,
      "max_database_users": 0,
      "pitr_days": 0,
      "max_protected_dirs": 0,
      "disk_mb": 0,
      "bandwidth_gb": 0,
      "disk_policy": "block",
      "bandwidth_policy": "notify",
      "grace_days": 0,
      "malware_scan": "off",
      "runtimes": [
        "php"
      ],
      "php_memory_mb": 0,
      "php_upload_mb": 0,
      "mail_out_per_hour": 0,
      "mail_out_per_hour_domain": 0,
      "site_cpu_percent": 0,
      "site_cpu_cores": 0,
      "app_cpu_cores": 0,
      "site_memory_mb": 0,
      "app_cpu_percent": 0,
      "app_memory_mb": 0,
      "auto_heal": "off",
      "waf": "",
      "waf_static_bypass": "",
      "perf_auto": "",
      "perf_warm": "",
      "php_open_basedir": "",
      "restore_tests": "",
      "wp_cache": "",
      "wp_cache_mb": 0,
      "max_previews": 0,
      "preview_disk_mb": 0,
      "max_containers": 0,
      "container_image_mb": 0,
      "container_isolation": "",
      "container_trust": ""
    },
    "usage": {
      "sites": 0,
      "databases": 0,
      "apps": 0,
      "containers": 0,
      "mailboxes": 0,
      "database_users": 0,
      "disk_bytes": 0,
      "traffic_bytes": 0,
      "measured_at": "2026-01-01T00:00:00Z"
    },
    "kit": {
      "state": "running",
      "done": 0,
      "total": 0,
      "waiting": 0,
      "failed": 0
    },
    "ending": {
      "state": "ending",
      "tenant_id": "string",
      "ref": "string",
      "reseller": true,
      "started_at": "2026-01-01T00:00:00Z",
      "ended_at": "2026-01-01T00:00:00Z",
      "steps": [
        {
          "name": "customers",
          "state": "waiting",
          "total": 0,
          "done": 0,
          "error": {
            "code": "string",
            "message": "string",
            "retryable": true
          }
        }
      ],
      "attempts": 0,
      "last_error": {
        "code": "string",
        "message": "string",
        "retryable": true
      },
      "next_try_at": "2026-01-01T00:00:00Z",
      "remote_backups_left": [
        {
          "backup_id": "string",
          "target": "string",
          "where": "string",
          "created_at": "2026-01-01T00:00:00Z",
          "code": "string",
          "at": "2026-01-01T00:00:00Z"
        }
      ]
    }
  },
  "exceeded": [
    {
      "limit": "string",
      "used": 0,
      "max": 0
    }
  ],
  "applied": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required