> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resubmit Sitemap

> Resubmit sitemap to Google Search Console after new content is deployed

## Overview

This endpoint resubmits the sitemap to Google Search Console to notify Google that new pages have been added.

Called by the **cron service** after deploying new boosted pages.

## Path Parameters

<ParamField path="org_id" type="string" required>
  The organization identifier. Can be either:

  * Clerk organization ID (e.g., `org_xxx`)
  * Organization slug / business\_id (e.g., `acme-corp`)

  The cron service uses the org\_slug (business\_id).
</ParamField>

## Response

<ResponseField name="status" type="string">
  `success`, `skipped`, or `error`
</ResponseField>

<ResponseField name="sitemap_submitted" type="boolean">
  Whether the sitemap was successfully submitted
</ResponseField>

<ResponseField name="message" type="string">
  Success, skip reason, or error message
</ResponseField>

## Example Responses

### Success

```json theme={null}
{
  "status": "success",
  "sitemap_submitted": true,
  "message": "Sitemap resubmitted to Google Search Console"
}
```

### Skipped (Not Verified)

```json theme={null}
{
  "status": "skipped",
  "sitemap_submitted": false,
  "message": "Domain not verified with Google. Complete verification first."
}
```

## Prerequisites

The domain must already be verified with Google Search Console (`google_verification_status = 'VERIFIED'`).

If the domain is not verified, the endpoint returns `status: "skipped"` (non-blocking for cron).

## Database Updates

On success:

* `google_sitemap_submitted_at`: Updated to current timestamp

## Usage in Cron

```python theme={null}
# In Cron/src/jobs/boosted_pages.py
sitemap_result = await resubmit_sitemap(business_id)
if sitemap_result.get("status") == "success":
    print(f"📤 Google: Sitemap resubmitted")
```
