Skip to navigation

Update Page Sitemap Setting

Updates the sitemap setting of one static page. Folders, utility pages, and collection template pages don’t support sitemap indexing. Without localeId, the update applies to the primary locale.

Publish to apply changes

The live site’s sitemap.xml file changes after you publish the site. Publishing only this page from the Designer also updates its sitemap entry.

Beta access
These endpoints are available only to workspaces in the sitemap indexing beta. Valid requests from other workspaces return 404.
Enterprise Only
This endpoint requires an Enterprise workspace.

Required scope | pages:write

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

page_idstringRequiredformat: "objectid"
Unique identifier for a Page

Query parameters

localeIdstringOptional

Unique identifier for a specific Locale.

Learn more about localization.

Request

This endpoint expects an object.
includeInSitemapbooleanRequired

Set to true to list the page in the sitemap, or false to leave it out.

Response

Request was successful
idstringformat: "objectid"
Unique identifier for the page
titlestring
The page's title
slugstring
The page's slug
includeInSitemapboolean

Whether Webflow lists the page in the site’s auto-generated sitemap.xml file. Archived pages and draft pages are left out whatever this value is. This setting has no effect when Auto-generate sitemap is turned off.

localeIdstringOptionalformat: "objectid"

Unique identifier for the locale of this setting. The response includes this field only when the request passes localeId.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error