Receives one shard of the listings sitemap (or its manifest) for publication.

CARGA_TOKEN only. Submit catalog shards (up to 50,000 listings each, ordered by id) and sends only the shard whose content changed, then the manifest (how many shards, when). The Worker serves /sitemap-listings.xml (index) and /sitemap-listings-N.xml (shard) from that storage, with cache at the edge; the catalog database is never read for it. Returns: { ok, parte?, urls?, manifesto? }

post/api/admin/sitemap

Request

  • Base URL: https://agentalog.com
  • URL: https://agentalog.com/api/admin/sitemap
  • Auth: HTTP bearer

Request body

parteinteger

Shard number, 1-based (at most 200). Omit when sending the manifest.

gerado_emstring

UTC instant the shard was built.

urlsobject[]

{id, lastmod?} per listing, at most 50,000; lastmod is the listing's updated_at.

manifestoobject

{partes, gerado_em} — sent once after the shards; replaces the previous manifest.

Response

{ ok, parte?, urls?, manifesto? }

okboolean required

Stored.

parteinteger

The shard stored (absent for the manifest).

urlsinteger

Listings in it (absent for the manifest).

manifestoobject

The manifest stored (absent for a shard).

Changes

No recorded changes to this operation across all 1 revision of this API.