hosting

POST /v1/sites/{siteId}/sitemap

Start a sitemap crawl.

Tüm hosting uç noktaları

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar sites.panel_access iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

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

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

⛔ **`202`, and the returned state describes a job that has STARTED.** A crawler walks the whole site and may take minutes; the sitemap does not exist when this returns. Poll `getSiteSitemap` until `running` is false. Answering `200` here would be the status-code equivalent of telling the customer their sitemap is ready. `upload` writes `sitemap.xml` into the webspace, overwriting any existing file. Requires `sites.panel_access`.

Parametreler

AdTürZorunluNe olduğu
siteId (path)UuidEvetSite ID (UUIDv7).

İstek gövdesi

AdTürZorunluNe olduğu
frequencystring<always, hourly, daily, weekly, monthly, never, yearly>HayırThe `changefreq` written into the generated XML. A guideline to search engines, not a guarantee.
uploadbooleanHayırOverwrite `sitemap.xml` in the webspace when the crawl finishes.

Yanıt

AdTürZorunluNe olduğu
ever_runbooleanEvetHas a crawl ever been run for this site?
runningbooleanEvetIs a crawl in progress? ⛔ Computed as *not in a terminal state*, so a state we have never seen reads as still working rather than as finished.
statestringEvetThe vendor's own job state, verbatim. Empty when none has run.
created_atstringEvetWhen the most recent crawl started. Empty when none has run.
outputstringEvetThe crawler's own output, if it produced any.
uploadbooleanEvetWhether the crawl writes `sitemap.xml` into the webspace.
frequenciesstring[]EvetThe change frequencies this site's crawler accepts.

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 422 · 429 · 503