hosting

POST /v1/sites/{siteId}/sitemap

Start a sitemap crawl.

Todos los endpoints de hosting

Autenticación

Envía una clave de API como token de portador. La clave debe tener el permiso sites.panel_access; una clave que no lo tenga se rechazará con un código 403, no 404.

Este endpoint no requiere ningún id de organización. Su clave ya identifica la organización a la que pertenece, y la respuesta está delimitada a ella.

Pruébalo

Reemplaza cualquier elemento entre corchetes angulares por tus propios valores, y el marcador de posición key con una clave de tu panel de control.

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

¿Has iniciado sesión? La consola de la API en tu panel de control rellena el ID de tu organización real y tu propia clave, y ejecuta la solicitud contra la API en vivo para que puedas ver la respuesta real. Abre este endpoint en la consola de la API

Detalles

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

Parámetros

NombreTipoObligatorio¿Qué es esto?
siteId (path)UuidSite ID (UUIDv7).

Cuerpo de la solicitud

NombreTipoObligatorio¿Qué es esto?
frequencystring<always, hourly, daily, weekly, monthly, never, yearly>NoThe `changefreq` written into the generated XML. A guideline to search engines, not a guarantee.
uploadbooleanNoOverwrite `sitemap.xml` in the webspace when the crawl finishes.

Respuesta

NombreTipoObligatorio¿Qué es esto?
ever_runbooleanHas a crawl ever been run for this site?
runningbooleanIs 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.
statestringThe vendor's own job state, verbatim. Empty when none has run.
created_atstringWhen the most recent crawl started. Empty when none has run.
outputstringThe crawler's own output, if it produced any.
uploadbooleanWhether the crawl writes `sitemap.xml` into the webspace.
frequenciesstring[]The change frequencies this site's crawler accepts.

Errores que este endpoint puede devolver

401 · 403 · 404 · 422 · 429 · 503