Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.panel_access; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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