hosting

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

Set a site's PHP settings.

כל נקודות הקצה מסוג hosting

כל תיעוד המפתחים

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

Applies the complete set of overrides. An omitted name is cleared, and {} resets every setting to the machine's defaults — 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. Values are validated against the machine's own published range before the vendor sees them, so a bad value is refused in our words rather than failing later as an unexplained vendor error. The write is then read back off the machine and a value it quietly declined is a failure here, never a success the customer discovers is untrue. 409 when the site has no machine to hold the setting. Requires sites.view + sites.panel_access.

פרמטרים

שםסוגנדרשמה זה
siteId (path)UuidכןSite ID (UUIDv7).

גוף הבקשה

שםסוגנדרשמה זה
valuesobjectכן

תשובה

שםסוגנדרשמה זה
supportedbooleanכןWhether this site's hosting publishes changeable PHP settings.
reasonstringכןWhy there are none, in words a customer can act on. Empty when supported is true.
optionsSitePhpOption[]כן
moved_to_plan_settingsstring[]לאDirectives the vendor publishes but whose legal range is OUR policy, so they are returned by getSitePhpSettings (with the plan's cap) instead of here. Named rather than silently…

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404 · 409 · 422 · 429 · 503