hosting

POST /v1/sites/{siteId}/sitemap

Start a sitemap crawl.

Усі кінцеві точки hosting

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл sites.panel_access; ключ без нього відхиляється з кодом 403, а не 404.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

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

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

⛔ **`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`.

Параметри

НазваТипОбов'язковеЩо це таке
siteId (path)UuidТакSite ID (UUIDv7).

Тіло запиту

НазваТипОбов'язковеЩо це таке
frequencystring<always, hourly, daily, weekly, monthly, never, yearly>НіThe `changefreq` written into the generated XML. A guideline to search engines, not a guarantee.
uploadbooleanНіOverwrite `sitemap.xml` in the webspace when the crawl finishes.

Відповідь

НазваТипОбов'язковеЩо це таке
ever_runbooleanТакHas a crawl ever been run for this site?
runningbooleanТакIs 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.
statestringТакThe vendor's own job state, verbatim. Empty when none has run.
created_atstringТакWhen the most recent crawl started. Empty when none has run.
outputstringТакThe crawler's own output, if it produced any.
uploadbooleanТакWhether the crawl writes `sitemap.xml` into the webspace.
frequenciesstring[]ТакThe change frequencies this site's crawler accepts.

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422 · 429 · 503