Authentification
Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation sites.panel_access ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.
Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.
Essayer
Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/sitemap \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API
Détails
⛔ **`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`.
Paramètres
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
siteId (path) | Uuid | Oui | Site ID (UUIDv7). |
Corps de la requête
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
frequency | string<always, hourly, daily, weekly, monthly, never, yearly> | Non | The `changefreq` written into the generated XML. A guideline to search engines, not a guarantee. |
upload | boolean | Non | Overwrite `sitemap.xml` in the webspace when the crawl finishes. |
Réponse
| Nom | Type | Obligatoire | Qu'est-ce que c'est |
|---|---|---|---|
ever_run | boolean | Oui | Has a crawl ever been run for this site? |
running | boolean | Oui | 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. |
state | string | Oui | The vendor's own job state, verbatim. Empty when none has run. |
created_at | string | Oui | When the most recent crawl started. Empty when none has run. |
output | string | Oui | The crawler's own output, if it produced any. |
upload | boolean | Oui | Whether the crawl writes `sitemap.xml` into the webspace. |
frequencies | string[] | Oui | The change frequencies this site's crawler accepts. |
Erreurs que cet point de terminaison peut renvoyer
401 · 403 · 404 · 422 · 429 · 503