searchconsole.sitemaps.submit
Submit a sitemap URL for a site to Google Search Console so search engines can discover pages to crawl and index; returns the API response as JSON.
Instructions
Submits a sitemap for a site [HTTP PUT] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: delete, get, list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| siteUrl | Yes | [URL path segment] The site's URL, including protocol. For example: `http://www.example.com/`. | |
| feedpath | Yes | [URL path segment] The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. |