The available WordPress site environments include:
Using the environments
endpoint, you can:
You can obtain the site_id
using the GET
request with the WordPress Sites endpoint.
The site_id
is also shown in the URL in MyKinsta when you access the environment, for example in the URL https://my.kinsta.com/sites/details/fbab4927-e354-4044-b226-29ac0fbd20ca/c84ce214-69b9-4a32-8e67-880672cf1d38?idCompany=bdd25d71-5706-4890-870f-1adda17c505d
:
site_id
is fbab4927-e354-4044-b226-29ac0fbd20ca
environment_id
is c84ce214-69b9-4a32-8e67-880672cf1d38
company_id
is bdd25d71-5706-4890-870f-1adda17c505d
The change-environment-php-allocation
and change-site-php-allocation
endpoints are not currently available to customers who have the PHP memory add-on or those on any of following plans: Single 1.25M or above, WP 60 or above, Agency, or a custom plan.
The PHP memory limit and number of PHP threads must add up to the existing total memory pool of the site. You can only change the total memory pool within PHP performance in MyKinsta.
change-environment-php-allocation
can only be used for premium staging environments.
change-site-php-allocation
updates the PHP memory limit of the live environment and all standard staging environments. Strandard staging environments will always have 2 PHP threads regardless of their memory allocated. You cannot use this endpoint to update premium staging environments.
Successfully found site environments
No or invalid API key provided to the request
Could not find the site environments or the user does not have permissions to retrieve data
Error occurred while retrieving site environments
{- "site": {
- "environments": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "first-site",
- "display_name": "First site",
- "is_blocked": false,
- "id_edge_cache": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "cdn_cache_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "is_premium": false,
- "domains": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "example.com",
- "type": "live"
}
], - "primaryDomain": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "example.com",
- "type": "live"
}, - "ssh_connection": {
- "ssh_port": "808080",
- "ssh_ip": {
- "external_ip": "1xx.1xx.1xx.1xx"
}
}, - "container_info": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "php_engine_version": "php8.3"
}
}
]
}
}
Environment creation action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while creating an environment
{- "display_name": "development",
- "site_title": "My First Site - development",
- "is_premium": false,
- "is_subdomain_multisite": false,
- "admin_password": "vJnFnN-~v)PxF[6k",
- "admin_user": "admin",
- "is_multisite": false,
- "woocommerce": false,
- "wordpress_plugin_edd": false,
- "wordpressseo": false,
- "wp_language": "en_US"
}
{- "operation_id": "environment:add-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Adding environment in progress",
- "status": 202
}
Pushing environment action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while pushing an environment
{- "source_env_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "target_env_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "push_db": true,
- "push_files": true,
- "run_search_and_replace": true
}
{- "operation_id": "environments:push-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Pushing environment in progress",
- "status": 202
}
Creating plain environment action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while creating an environment
{- "display_name": "development",
- "is_premium": false
}
{- "operation_id": "environment:clone-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Creating plain environment in progress",
- "status": 202
}
Cloning environment action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while creating an environment
{- "display_name": "development",
- "is_premium": false,
- "source_env_id": "0010cdaf-0b94-472e-86bd-7edf6fceaa1c"
}
{- "operation_id": "environment:clone-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Cloning environment in progress",
- "status": 202
}
Deleting envrionment action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while deleting an environment
{- "operation_id": "environments:delete-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Deleting environment in progress",
- "status": 202
}
Environment PHP allocation change action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while changing PHP allocation settings
{- "worker_number": 2,
- "worker_memory": 256
}
{- "operation_id": "environments:change-environment-php-allocation-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Environment PHP allocation change in progress",
- "status": 202
}
Site PHP allocation change action started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while changing PHP allocation settings
{- "worker_number": 2,
- "worker_memory": 256
}
{- "operation_id": "sites:change-site-php-allocation-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Site PHP allocation change in progress",
- "status": 202
}