hosting
PUT /v1/sites/{siteId}/wordpress/config
Change the site's WordPress memory limit.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/wordpress/config \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "memory_limit": <string<, 64M, 128M, 256M, 512M>> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Writes WP_MEMORY_LIMIT from a closed list (64M, 128M, 256M, 512M), or removes it with "" (WordPress's own default), then re-reads the file and returns it as re-read; a value the site did not take answers 422 and nothing else is changed. PHP's own memory limit still caps what WordPress can use. Audit-logged as wordpress.config.memory_limit_changed. Requires sites.view and sites.panel_access. Fleet only — refused where wp_maintenance is false.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
memory_limit | string<, 64M, 128M, 256M, 512M> | Yes | The new WP_MEMORY_LIMIT; "" removes it (WordPress's default). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
supported | boolean | Yes | False where this platform cannot read the site's wp-config.php. |
memory_limit | object | No | WP_MEMORY_LIMIT as written in wp-config.php, or null when it is absent (WordPress's own default). |
memory_limit_choices | string[] | No | The values PUT accepts besides "" (WordPress's default). |
table_prefix | string | No | The database table prefix ($table_prefix). Read only. |
file_edit_locked | boolean | No | True when DISALLOW_FILE_EDIT is set, so wp-admin's theme and plugin file editor is off. Set by the platform for security on every site. Read only. |
cron_by_scheduler | boolean | No | True when DISABLE_WP_CRON is set, so WordPress's scheduled tasks are run by the platform's scheduler rather than by page visits. Read only. |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503