latestOpenAPI 3.1.02026-08-1076186318.8 KB

ab648a80ca4d

WordPress Site Environments

Change PHP allocation settings for a premium staging environment

post/sites/environments/{env_id}/change-environment-php-allocation

Path parameters

env_idstring uuid required
Example:54fb80af-576c-4fdc-ba4f-b596c83f15a1

Request body

worker_numbernumber required
worker_memorynumber required

Example request

{
  "worker_number": 2,
  "worker_memory": 256
}

Response

Environment PHP allocation change action started. Check MyKinsta for status

operation_idstring required
messagestring required
statusnumber required

Example response

{
  "operation_id": "environments:change-environment-php-allocation-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  "message": "Environment PHP allocation change in progress",
  "status": 202
}