---
title: "Change PHP allocation settings for a premium staging environment"
method: POST
path: "/sites/environments/{env_id}/change-environment-php-allocation"
tags: ["WordPress Site Environments"]
---

# Change PHP allocation settings for a premium staging environment

`POST /sites/environments/{env_id}/change-environment-php-allocation`

## Path parameters

- `env_id` string, uuid, required

## Request body

- ChangeEnvironmentPhpAllocationBody
  - `worker_number` number, required
  - `worker_memory` number, required

## Response `202`

Environment PHP allocation change action started. Check MyKinsta for status

- ChangeEnvironmentPhpAllocationResponse
  - `operation_id` string, required
  - `message` string, required
  - `status` number, required

## Other responses

- `400` — One or more of the required parameters were not provided to the request
- `401` — No or invalid API key provided to the request
- `500` — Error occurred while changing PHP allocation settings

---

[API](https://skmtc.net/sevalla/apis/sevalla-api.md) · [All operations](https://skmtc.net/sevalla/apis/sevalla-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sevalla/sevalla-api/revisions/ab648a80ca4d/schema)
