ავტორიზაცია

API გასაღები გაგზავნეთ როგორც მატარებელი ტოკენი (bearer token). გასაღებს უნდა ჰქონდეს sites.panel_access ნებართვა; ამის გარეშე გასაღები უარყოფილი იქნება 403 და არა 404 სტატუსით.

ეს ბოლო წერტილი არ იღებს ორგანიზაციის იდენტიფიკატორს. თქვენი გასაღები უკვე აიდენტიფიცირებს იმ ორგანიზაციას, რომელსაც ის ეკუთვნის, და პასუხი შემოფარგლულია მისით.

სცადეთ

შეSubstituted any value inside angle brackets with your own and the key placeholder with a key from your dashboard.

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-ს წინააღმდეგ, რათა იხილოთ რეალური პასუხი. გაAღით ეს ენდპოინტი 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