Skip to content

Regenerate Sitemap (GraphQL)

Mutation: createAdminMarketingSitemapGenerate.

Synchronous generation

Runs Webkul\Sitemap\Jobs\ProcessSitemap via dispatchSync — the response carries the generated paths once finished (not queued).

Permission: marketing.search_seo.sitemaps.edit.

Prerequisites

The example uses an illustrative id value. Replace it with the id of a sitemap that exists in your store — use the adminMarketingSitemaps query to discover valid ids.

Released under the MIT License.