POST /api/domain/resubmit-sitemap/
Resubmits the sitemap to Google Search Console. Used after deploying new boosted pages.Purpose
This endpoint notifies Google that the sitemap has been updated, typically called:- After new boosted pages are deployed
- After site content is regenerated
- As part of cron job workflows
Architecture
Flexible ID Lookup
Theorg_id parameter can be either:
clerk_org_id- Used by frontendorg_slug(business_id) - Used by cron services
Internal Services
submit_sitemap
Submits the sitemap URL to Google Search Console API. Location:src/app/shared/google_search_console.py
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | βsuccessβ, βskippedβ, or βerrorβ |
sitemap_submitted | boolean | Whether sitemap was submitted |
message | string | Human-readable status |
Non-Blocking Behavior
This endpoint returns βskippedβ (not error) when:- Domain is not verified
- Organization not found