hosting
PUT /v1/sites/{siteId}/php-settings
Set a site's PHP extensions and php.ini settings.
प्रमाणीकरण
एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। कुञ्जीसँग sites.view अनुमति हुनुपर्छ; अनुमति नभएको कुञ्जीलाई 404 होइन, 403 मार्फत अस्वीकार गरिन्छ।
यो इन्डपोइन्टले कुनै संस्थाको आइडी लिँदैन। तपाईंको कुञ्जीले यस अन्तर्गत पर्ने संस्थालाई पहिल्यै पहिचान गर्छ, र प्रतिक्रिया त्यसैमा सीमित हुन्छ।
प्रयास गर्नुहोस्
कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।
curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/php-settings \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'लगइन गर्नुभएको छ? तपाईंको ड्यासबोर्डमा रहेको API कन्सोलले तपाईंको वास्तविक संस्थाको आईडी र आफ्नै कुञ्जी भरिदिन्छ, र लाइभ 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). |
अनुरोध बडी
| नाम | प्रकार | आवश्यक | यो के हो |
|---|---|---|---|
extensions | string[] | हैन | 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… |
ini | object | हैन | The php.ini overrides to have set. Values are strings, as PHP reads them. |
प्रतिक्रिया
| नाम | प्रकार | आवश्यक | यो के हो |
|---|---|---|---|
php_version | string | हुन्छ | The alt-php version this site runs, dotted (8.3). Empty if unset. |
extensions | SitePhpExtension[] | हुन्छ | — |
ini | SitePhpBandedOption[] | हुन्छ | — |
lve | SiteLveState | हुन्छ | 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_at | string | हुन्छ | 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