Submits a sitemap (or RSS / Atom feed) of a site to Bing (a change made with the connected Bing Webmaster Tools account).
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.submit_sitemap" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/","sitemapUrl":"https://www.example.com/sitemap.xml"}'{
"output": {
"found": true,
"data": {
"submitted": true,
"siteUrl": "https://www.example.com/",
"sitemapUrl": "https://www.example.com/sitemap.xml"
}
},
"credits": 1
}Input and output
3 fields
https://www.example.com/.https://www.example.com/sitemap.xml.3 fields
Good to know
Changes your account. This call creates, edits or deletes something in the connected account, live. Confirm before running it. With an Idempotency-Key it never runs twice, and monitors can’t schedule it.
WRITE: submits the sitemap to Bing as the connected Bing Webmaster Tools account.
Needs the Manage Bing Webmaster Tools capability.
Bing takes sitemaps, RSS 2.0, Atom 0.3 and 1.0 feeds and text files. The URL must be on the site.
A site the account has not verified is a miss with reason no_access. Nothing is submitted.
Unknown site URL? It comes back as not found, not as an error.
The same key and credits work for every API.