hosting

POST /v1/sites/{siteId}/wordpress/update

Update WordPress core on a site.

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

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

認証

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

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

試してみる

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

curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/wordpress/update \
  -H "Authorization: Bearer zdk_live_…"

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

詳細

Asks the vendor to update WordPress itself. 202 and not 200: the platform acknowledges and updates afterwards, so the state in the body is the install as it reads now and usually still shows the old version. Returning 200 with a version the site is not running is exactly the lie this status exists to avoid — the client re-reads getSiteWordPress rather than trusting the body as final. Refused 422 before the vendor is called when the package type does not carry wp_updates, or when WordPress is not installed. 404 for a site with no vendor hosting package. Requires sites.view and sites.panel_access.

パラメータ

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

返信

名前タイプ必須これがその内容です
installedbooleanはいWhether WordPress is on the package at all.
versionstringはいThe installed version, or "" when the vendor did not state one.
is_latestbooleanはいTri-state. Null means the vendor did not say, which is not "out of date": rendering an unknown as out of date invites a customer to run a core update on a live site for…
is_multisitebooleanはいWhether the install is a WordPress network.
update_availablebooleanはいThe flag a screen should act on. Derived from the vendor's update object being non-empty rather than from a comparison between two version strings nobody parsed — ⛔ {} is how…
update_versionstringはいThe version waiting, or "" when the install is current.
site_urlstringはいThe URL WordPress believes it is served from.
wizard_requiredbooleanはいWhether the install has never been through WordPress's own setup wizard — a half-installed site, not a broken one.
unavailable_reasonstring<, database, config, unreadable, not-routed>はいRead this before rendering installed. Empty means installed is authoritative. Non-empty means it is not: the probe failed and we could not determine the answer, so a…
capabilitiesobjectはいWhich of the eleven WordPress operations this package type permits, keyed by our stable machine identifiers — never a vendor string and never display text, so they are usable…

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

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