pagehive

put_sitemap

Publish sitemap.xml.

Draft contentChanges dataAll plans

What it does

Publish sitemap.xml. Private, offline, and unpublished sites do not serve it.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
sourcerequiredstringThe sitemap XML. It is served at /sitemap.xml while the site is public and online.
messagestringA short note for the version history, like a commit message.
verbosebooleantrue lists every file and page of the draft. Otherwise the response lists only what this call changed, plus draft totals.

Example

Call put_sitemap with these arguments:

{
  "site_id": "01a1…",
  "source": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><url><loc>https://team-recipes.pagehive.space/</loc></url></urlset>"
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides