updateSitemap
Update the sitemap of the project. 🔐 This method requires authorization.
Description
This method generates a new sitemap for the project based on the provided base URLs and entries. It returns a Promise that resolves to an array of generated sitemap URLs (string[]).
Sitemap.updateSitemap(
body*);
Parameters schema
Schema
body(required): ISitemapQuery
Sitemap body params (e.g. { baseUrls: { en_US: "https://…" } })
body.baseUrls: Record<string, string>
Base URLs per language for sitemap generation.
example:
{ "en_US": "https://example.com/" }
body.url: string
URL of a single sitemap entry.
body.lastmod: string
Last modification date of the entry.
body.changefreq: string
Frequency of changes for the entry.
body.priority: number
Priority of the entry.
Examples
Minimal example
const body = [ { "url": "https://your-project.oneentry-cloud.com/", "lastmod": "2025-06-01T00:00:00.000Z", "changefreq": "daily", "priority": 1.0 }];
const response = await Sitemap.updateSitemap(body);
Example response
{}