Add Sitemap file
add-sitemapRegister a sitemap file URL for a verified Yandex Webmaster host. Returns sitemap_id; fails if the host isn't verified or the sitemap already exists.
Instructions
Add a Sitemap file to Yandex Webmaster (user-added sitemaps). Returns sitemap_id. The host must be verified, or the call fails with 404 HOST_NOT_VERIFIED. Adding a file that is already there fails with 409 SITEMAP_ALREADY_ADDED — not a broken call but "already present", and the error payload names the existing sitemap_id. Use when the user asks to register a sitemap URL on an already verified host. Do not use it to list files; call get-user-sitemaps. Do not use it to delete the host; call delete-host, which is irreversible and requires confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the sitemap file (e.g. "https://example.com/sitemap.xml") | |
| host_id | Yes | Host ID (URL-encoded, e.g. "https:example.com:443") |