hosting

PUT /v1/sites/{siteId}/php-settings

Set a site's PHP extensions and php.ini settings.

すべての hosting エンドポイント

すべての開発者向けドキュメント

認証

ベアラー トークンとして API キーを送信します。キーには sites.view 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/php-settings \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

Applies the complete desired state. An omitted name is cleared — deliberately not a PATCH, because "return this to the platform default" and "pin it to the value that default happens to have today" are different intentions and only a whole-set write can express the first. The change is pushed to the machine as part of this call and read back, so a 200 means the interpreter a visitor's request runs has actually loaded it. A value the box quietly declined is a failure here, never a success the customer discovers is untrue later. A value above the plan's ceiling is a 422 naming the plan and the tier that would allow it, so the panel can offer the upgrade rather than showing a dead end. A staff-only directive is also a 422 and not a 403: the caller is entitled to change PHP settings, and this particular one is not among them — a 403 reads as "you need a different key" and sends them to support to ask for one that does not exist. Requires sites.view + sites.panel_access.

パラメータ

名前タイプ必須これがその内容です
siteId (path)UuidはいSite ID (UUIDv7).

リクエスト本文

名前タイプ必須これがその内容です
extensionsstring[]いいえThe Tier 2 extensions to have enabled. Naming a Tier 0/1 extension is a 422 rather than a silent no-op, and naming a Tier 3 one is a 422 too — filtering them would report…
iniobjectいいえThe php.ini overrides to have set. Values are strings, as PHP reads them.

返信

名前タイプ必須これがその内容です
php_versionstringはいThe alt-php version this site runs, dotted (8.3). Empty if unset.
extensionsSitePhpExtension[]はい
iniSitePhpBandedOption[]はい
lveSiteLveStateはいThe site's CloudLinux LVE resource tier — docs/204 §7b. ⭐ ep is the limit that emits 508 Resource Limit Is Reached, which is why this is on a customer screen at all: it…
applied_atstringはいWhen these settings were last confirmed by the machine. null means they have never been pushed — a different fact from "pushed and matched", and the only one of the two that…

このエンドポイントが返すエラー

401 · 403 · 404 · 422 · 429