---
title: "Update an environment's staging size answer"
url: https://docs.corefinity.com/api/reference/enterprise/update-environment-move-size
type: endpoint
last_updated: 2026-11-13
feature: enterprise-websites
related:
  - https://docs.corefinity.com/guides/corestack-enterprise/websites-and-environments.md
---
# Update an environment's staging size answer

Records which staging size the environment gets when it moves to CoreStack: `accept` the larger size its measured memory suggests, or `keep` the smaller one. The larger size can cost more each month. The answer can be changed until the move uses it.

```http
POST /api/environments/{environment}/move-size
```

- Scope: `write`
- Two-factor: required on your account (all)
- Rate limit: 20 a minute
- Try it in the console: off. It can add to your bill. Copy the request and run it yourself when you are sure.

## Path parameters

- `environment` (integer, required): The id of a CoreStack Enterprise environment. Not the same number as a site row id.

## Body

- `acknowledge_warning` (boolean): Send true with `keep`, once the person has read the option's `warning`.
- `answer` (string, required): `accept` takes the larger size, `keep` the smaller one. One of `accept`, `keep`.
- `confirm_cost` (boolean): Send true with `accept` when the option's `confirm_cost` is true, once the person has agreed to the extra monthly cost.
- `question_id` (integer, required): The `id` of the environment's `move_size`.

## Request

### curl

```bash
curl -X POST https://manage.corefinity.com/api/environments/1311/move-size \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "answer": "accept",
    "confirm_cost": true,
    "question_id": 5312
  }'
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->post('https://manage.corefinity.com/api/environments/1311/move-size', [
        'answer' => 'accept',
        'confirm_cost' => true,
        'question_id' => 5312,
    ]);

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/environments/1311/move-size', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    answer: 'accept',
    confirm_cost: true,
    question_id: 5312,
  }),
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.post(
    "https://manage.corefinity.com/api/environments/1311/move-size",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "answer": "accept",
        "confirm_cost": True,
        "question_id": 5312,
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The question with the answer recorded.

```json
{
  "data": {
    "answer": {
      "answer": "accept",
      "answered_at": "2026-11-03T09:20:05Z",
      "on_behalf": false,
      "uat_size": "large",
      "warning_acknowledged": false
    },
    "asked_at": "2026-11-03T09:16:40Z",
    "disk_size": "medium",
    "id": 5312,
    "measured": "Over the last 14 days this environment used up to 2.9 GB for PHP; Large gives PHP 4 GB.",
    "memory_size": "large",
    "options": [
      {
        "answer": "accept",
        "confirm_cost": true,
        "currency": "GBP",
        "delta": "150.00",
        "included": false,
        "label": "Large, £150.00/month (+£150.00)",
        "monthly": "150.00",
        "uat_size": "large",
        "warning": null
      },
      {
        "answer": "keep",
        "confirm_cost": false,
        "currency": "GBP",
        "delta": null,
        "included": true,
        "label": "Medium, included at no charge",
        "monthly": "0.00",
        "uat_size": "medium",
        "warning": "This environment used more memory than Medium gives. It may run out of memory and stop commands or pages; you can resize later."
      }
    ],
    "price_note": null,
    "priced": true,
    "rule_version": "1",
    "state": "answered",
    "window_days": 14
  }
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the `write` scope (`scope_required`), your company requires two-factor authentication and you have not set it up, or you have no billing rights for the website (`billing_forbidden`).

```json
{
  "code": "billing_forbidden",
  "message": "Billing is available to your company's owner and billing contacts.",
  "reason": "billing_forbidden"
}
```

### 404 The environment does not exist or is not yours to see, `question_id` is not a question of this environment, or staging sizes are not measured from memory at the moment (`feature_off`).

```json
{
  "code": "feature_off",
  "message": "Staging sizes measured from memory are not available.",
  "reason": "feature_off"
}
```

### 409 The question is no longer the current one (`stale`): read the environment again.

```json
{
  "code": "stale",
  "message": "This question was replaced by a newer one (the figures or a price changed). Answer the newer one.",
  "reason": "stale"
}
```

### 422 A field is missing or wrong (`invalid`), `keep` was sent without `acknowledge_warning` (`warning_not_acknowledged`), or `accept` costs more a month and was sent without `confirm_cost` (`confirm_cost`).

```json
{
  "code": "invalid",
  "errors": {
    "answer": [
      "The selected answer is invalid."
    ]
  },
  "field": "answer",
  "message": "The selected answer is invalid.",
  "reason": "invalid"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `billing_forbidden` | Billing is for the organisation's owner and billing contacts. Ask one of them to do this. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 409 | `stale` | What you read has changed since you read it. Read it again, then send the change with its new version or quote. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 422 | `confirm_cost` | Large costs £150.00/month more. Send confirm_cost: true once the customer has agreed to the extra cost. |
| 422 | `warning_not_acknowledged` | This environment used more memory than Medium gives. It may run out of memory and stop commands or pages; you can resize later. Tick the warning to keep the smaller size. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Websites and environments](https://docs.corefinity.com/guides/corestack-enterprise/websites-and-environments.md)
