CorefinityCorefinityDocs
Open the Control PanelControl Panel
Packages and capacity · 3 of 12

Update a CoreCluster's package

Moves a CoreCluster to a larger package, billed at the new price once the change has finished; a smaller package is arranged with support. quote is the price the change was made at, or null for a CoreCluster with no billing contract.

POST/api/corestack/clusters/{cluster}/package

Path parameters

clusterintegerRequired

The id of a CoreCluster. Digits only. At least 1.

Body

confirm_namestringRequired

The CoreCluster's name, typed exactly.

packagestringRequired

The CoreCluster package to move to, by its key, such as cc12.

quote_idstring or null

The id of a quote from POST /corestack/billing/quote. With it, the change is refused 409 stale when the price is no longer the quote's. Format: uuid.

Returns

201 The change has started.

Fields of the 201 answer
clusterobjectRequired

A CoreCluster. Every answer that carries a CoreCluster carries this object. Other fields may be present; the ones named in required are always sent.

Fields
actionsobjectRequired

What can be done with the CoreCluster now.

Fields
create_environmentobjectRequired

Whether something can be done now and, when it cannot, why not.

Fields
availablebooleanRequired
reasonstring or nullRequired
create_siteobjectRequired

May add grows, true when the CoreCluster is full and would grow first under automatic upgrades.

Fields
availablebooleanRequired
reasonstring or nullRequired
deleteobjectRequired

Whether something can be done now and, when it cannot, why not.

Fields
availablebooleanRequired
reasonstring or nullRequired
upgrade_packageobjectRequired

Adds downgrade, true when a smaller package can be chosen.

Fields
availablebooleanRequired
reasonstring or nullRequired
allowanceobjectRequired

What the package allows.

Fields
cpu_millicoresinteger or null
disk_bytesinteger or null
memory_bytesinteger or null
billingobject

Sent only by GET /corestack/clusters/{cluster}, while billing is on for your company.

Fields
account_idinteger or nullRequired

The billing account the CoreCluster is charged to. Null when nothing charges it yet, or you cannot see the account. At least 1.

capacityobjectRequired

How much of the package the CoreCluster's sites use.

Fields
basisstringRequired

What the usage figures are: measured (p95), estimated from the sizes of the sites (estimate), or both (mixed).

p95mixedestimate
cpuobjectRequired

One meter. The figures are in the unit its field names say; percent is what is used of the capacity.

Fields
levelstringRequired

ok under 75 per cent, warning from 75 and blocked from 90.

okwarningblocked
percentintegerRequired
capacity_millicoresinteger
used_p95_millicoresnumber or null
evaluated_atstring or nullRequired

Format: date-time.

levelstringRequired

The worst level of the meters.

okwarningblocked
memoryobjectRequired

One meter. The figures are in the unit its field names say; percent is what is used of the capacity.

Fields
levelstringRequired

ok under 75 per cent, warning from 75 and blocked from 90.

okwarningblocked
percentintegerRequired
capacity_bytesinteger
used_p95_bytesnumber or null
packageobject or nullRequired

The package the figures are measured against. Null for a CoreCluster with no package.

Fields
coresinteger
keystring
memory_bytesinteger
namestring
sitesobjectRequired
Fields
countintegerRequired
environmentsintegerRequired
storageobjectRequired

One meter. The figures are in the unit its field names say; percent is what is used of the capacity.

Fields
levelstringRequired

ok under 75 per cent, warning from 75 and blocked from 90.

okwarningblocked
percentintegerRequired
capacity_bytesinteger
provisioned_bytesnumber or null
created_atstring or nullRequired

Format: date-time.

created_byobject or any or nullRequired
environmentsintegerRequired

How many environments besides production the CoreCluster has.

idintegerRequired

The {cluster} of every /corestack/clusters/{cluster} endpoint. At least 1.

kindstringRequired

customer for a CoreCluster of your own.

customerplatform
labelstringRequired
locationobjectRequired
Fields
archstring
arm64amd64
labelstring

Where the CoreCluster runs.

logsobject or nullRequired

How much log storage the CoreCluster uses. Null when its logs are not collected.

namestringRequired
operationobject or any or nullRequired

The change running on the CoreCluster now, or the one that left it failed. Null otherwise.

packageobject or nullRequired

The CoreCluster's package. Null when it has none, and while packages are off for your company.

Fields
coresinteger
keystring
namestring
pending_changesobjectRequired

The changes waiting for the next maintenance window of the CoreCluster's sites.

Fields
countinteger
window_starts_atstring or null

Format: date-time.

ready_atstring or nullRequired

Format: date-time.

regionobjectRequired
Fields
keystringRequired

The region key, as a create takes it.

labelstringRequired
placestringRequired
reservedobjectRequired

What the sizes of the CoreCluster's sites add up to.

Fields
cpu_limit_millicoresinteger
cpu_request_millicoresinteger
disk_bytesinteger
memory_limit_bytesinteger
memory_request_bytesinteger
sitesobjectRequired

How many sites the CoreCluster has, and how they are doing.

Fields
applyingintegerRequired
degradedintegerRequired
downintegerRequired
environmentsintegerRequired

Environments besides production.

healthyintegerRequired
liveintegerRequired

Sites with a domain attached.

previewintegerRequired

Sites with no domain attached yet.

totalintegerRequired
unknownintegerRequired
slugstringRequired

Made from the name when the CoreCluster is created. It never changes.

snapshotsobjectRequired

The short form of the CoreCluster's snapshot settings and storage.

Fields
frequencystring
over_quotaboolean
pruned_recentlyboolean
quota_bytesinteger or null
retention_daysinteger or null
usage_bytesinteger or null
ssh_hoststringRequired

The address the CoreCluster's sites are reached on over SSH.

statestringRequired
creatingreadydegradedmigratingdeletingfailed
state_labelstringRequired
state_reasonstring or nullRequired

Why the CoreCluster is degraded, migrating or failed, in plain words.

syncedobjectRequired

When the list of sites, the usage and the live status were last read.

Fields
inventory_atstring or null

Format: date-time.

live_atstring or null

Format: date-time.

usage_atstring or null

Format: date-time.

usageobjectRequired

What the sites use now. A figure is null where nothing was measured.

Fields
cpu_millicoresnumber or null
disk_used_bytesnumber or null
memory_bytesnumber or null
observed_atstring or null

Format: date-time.

sourcestring or null
operationobjectRequired

A change the Control Panel is making or has made. A save or an action that starts work answers one in operation; read it again by id with GET /corestack/operations/{operation} until status is completed or failed. Both answers have this shape; the few endpoints that answer a different one say so.

Fields
applied_atstring or null
can_retryboolean or null
clusterobject or any or null

The cluster the operation runs on.

committed_atstring or null
completed_atstring or nullRequired
created_atstring or nullRequired
environmentobject or any or null
errorstring or nullRequired

Why the operation failed, in plain words. Null unless status is failed.

failure_reasonstring or null

A stable code for the failure.

from_versionstring or null
hotboolean or null

True when the change applies without a maintenance window.

idintegerRequired
installobject or null
labelstring or null
notesarray of objects

What the operation did differently on purpose. Empty when nothing.

Fields of each item
codestringRequired
textstringRequired
parent_operation_idinteger or null
requested_byany

Who asked for the change.

reset_targetany

Present on some site creations and copies.

resultany

Always null here. A one-time result is read once with the reveal endpoint.

result_statestring
nonependingavailableviewed
retried_by_operation_idinteger or null
retries_operation_idinteger or null
retry_requiresany

What a retry needs first, if anything.

revealedany

Who revealed a one-time result and when, when there was one.

scopestringRequired
siteclusterbatch
siteobject or any or null

The website the operation belongs to. Null for a cluster's own operation.

statusstringRequired

Where a change is. completed and failed are final; every other status means the change is still running and blocks another change to the same site.

pendingcommittedrolling_outexecutingcompletedfailed
status_labelstringRequired
stepstring or null

The key of the step the operation is at. Null once it has completed.

stepsarray of objectsRequired
Fields of each item
keystring
labelstring
statestring

One of done, current, todo, failed or skipped.

subjectobject or null
summarystring or null
to_versionstring or null
typestringRequired

The kind of change, such as crons_change or redirects_change.

type_labelstringRequired
quoteobject or any or null

The price the change was made at. null when the CoreCluster has no billing contract.

shape_changebooleanRequired

Whether the new package runs on different servers, which takes longer.

warningsarray of stringsRequired

Sentences to show with the change, such as snapshots that will be trimmed to the new package's allowance. Usually empty.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403billing_forbiddenBilling is for the organisation's owner and billing contacts. Ask one of them to do this.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409same_packageThis is already the package. Choose a different one.
422confirm_mismatchSend the confirmation exactly as the field named in field asks for it.
422invalidFix the field named in field; errors says why.
422package_unknownThat is not a package Corefinity sells for this. Choose one from the catalogue.
429rate_limitedWait for the seconds in Retry-After.
502noneRead the message; it says what happened.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/corestack/clusters/1017/package \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_name": "Northwind UK 1",
    "package": "cc12"
  }'
{
  "cluster": {
    "actions": {
      "create_environment": {
        "available": true,
        "reason": null
      },
      "create_site": {
        "available": true,
        "reason": null
      },
      "delete": {
        "available": false,
        "reason": "This cluster is managed by Corefinity and cannot be deleted here"
      },
      "upgrade_package": {
        "available": true,
        "downgrade": false,
        "reason": null
      }
    },
    "allowance": {
      "cpu_millicores": 12000,
      "disk_bytes": 644245094400,
      "memory_bytes": 51539607552
    },
    "capacity": {
      "basis": "estimate",
      "cpu": {
        "capacity_millicores": 12000,
        "level": "ok",
        "percent": 1,
        "used_p95_millicores": 150
      },
      "evaluated_at": "2026-11-03T09:00:00Z",
      "level": "ok",
      "memory": {
        "capacity_bytes": 51539607552,
        "level": "ok",
        "percent": 1,
        "used_p95_bytes": 805306368
      },
      "package": {
        "cores": 12,
        "key": "cc12",
        "memory_bytes": 51539607552,
        "name": "CC12"
      },
      "sites": {
        "count": 1,
        "environments": 0
      },
      "storage": {
        "capacity_bytes": 644245094400,
        "level": "ok",
        "percent": 1,
        "provisioned_bytes": 10737418240
      }
    },
    "created_at": "2026-11-03T09:00:00Z",
    "created_by": null,
    "environments": 0,
    "id": 1017,
    "kind": "customer",
    "label": "Northwind UK 1",
    "location": {
      "label": "London (europe-west2)"
    },
    "logs": null,
    "name": "Northwind UK 1",
    "operation": null,
    "package": {
      "cores": 12,
      "key": "cc12",
      "name": "CC12"
    },
    "pending_changes": {
      "count": 0,
      "window_starts_at": null
    },
    "ready_at": null,
    "region": {
      "key": "uk",
      "label": "United Kingdom",
      "place": "London (europe-west2)"
    },
    "reserved": {
      "cpu_limit_millicores": 2000,
      "cpu_request_millicores": 100,
      "disk_bytes": 10737418240,
      "memory_limit_bytes": 4294967296,
      "memory_request_bytes": 536870912
    },
    "sites": {
      "applying": 0,
      "degraded": 0,
      "down": 0,
      "environments": 0,
      "healthy": 0,
      "live": 1,
      "preview": 0,
      "total": 1,
      "unknown": 1
    },
    "slug": "wordpress-cluster-1",
    "snapshots": {
      "frequency": "6h",
      "over_quota": false,
      "pruned_recently": false,
      "quota_bytes": 1288490188800,
      "retention_days": 30,
      "usage_bytes": null
    },
    "ssh_host": "ssh-northwind.example.net",
    "state": "ready",
    "state_label": "Ready",
    "state_reason": null,
    "synced": {
      "inventory_at": null,
      "live_at": null,
      "usage_at": null
    },
    "usage": {
      "cpu_millicores": null,
      "disk_used_bytes": null,
      "memory_bytes": null,
      "observed_at": null,
      "source": null
    }
  },
  "operation": {
    "applied_at": "2026-11-03T09:00:00Z",
    "can_retry": false,
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "committed_at": null,
    "completed_at": "2026-11-03T09:00:00Z",
    "created_at": "2026-11-03T09:00:00Z",
    "environment": null,
    "error": null,
    "failure_reason": null,
    "from_version": null,
    "hot": false,
    "id": 5122,
    "install": null,
    "label": null,
    "notes": [],
    "parent_operation_id": null,
    "requested_by": {
      "id": 2041,
      "name": "Eleanor Finch"
    },
    "reset_target": null,
    "result": null,
    "result_state": "none",
    "retried_by_operation_id": null,
    "retries_operation_id": null,
    "retry_requires": null,
    "revealed": null,
    "scope": "cluster",
    "site": null,
    "status": "completed",
    "status_label": "Done",
    "step": null,
    "steps": [
      {
        "key": "checked",
        "label": "Checked",
        "state": "done"
      },
      {
        "key": "applied",
        "label": "Applied",
        "state": "done"
      }
    ],
    "subject": null,
    "summary": "CC8 → CC12",
    "to_version": null,
    "type": "package_change",
    "type_label": "Change package"
  },
  "quote": {
    "applies": "now",
    "currency": "GBP",
    "effective_from": "2026-11-03T09:00:00Z",
    "expires_at": "2026-11-03T09:15:00Z",
    "id": "e1393f30-606e-453b-a7de-b0e9e1fe6985",
    "lines": [
      {
        "after": {
          "amount": "900.00",
          "currency": "GBP"
        },
        "before": {
          "amount": "600.00",
          "currency": "GBP"
        },
        "delta": {
          "amount": "300.00",
          "currency": "GBP"
        },
        "key": "package",
        "label": "Package: CC8 → CC12"
      }
    ],
    "monthly_after": {
      "amount": "900.00",
      "currency": "GBP"
    },
    "monthly_before": {
      "amount": "600.00",
      "currency": "GBP"
    },
    "monthly_delta": {
      "amount": "300.00",
      "currency": "GBP"
    },
    "prorata": {
      "amount": {
        "amount": "277.02",
        "currency": "GBP"
      },
      "from": "2026-11-03T09:00:00Z",
      "hours": 687,
      "to": "2026-12-01T00:00:00Z"
    },
    "tax": {
      "amount": {
        "amount": "60.00",
        "currency": "GBP"
      },
      "kind": "standard",
      "note": "UK VAT 20 %",
      "rate_percent": 20
    },
    "trial": null
  },
  "shape_change": false,
  "warnings": []
}
Try it

Try it is off for this endpointIt can add to your bill. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT