Regenerate Sitemap
| Endpoint | Method |
|---|---|
/api/admin/marketing/sitemaps/{id}/generate | POST |
Walks every public Category / Product / Page and (re)writes the XML files under the public disk. Updates the sitemap row's generated_at, index file, and child sitemap list.
Synchronous generation
The endpoint runs Webkul\Sitemap\Jobs\ProcessSitemap via dispatchSync — the response carries the generated file paths once the job finishes (not queued in the background).
Permission: marketing.search_seo.sitemaps.edit.

