Update page SEO settings

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Hides one page from search engines or makes it visible again, and returns that page's settings as they now stand.

This endpoint changes only noindex and ignore_parent_noindex. The page's other fields, and every other page, keep their saved values. See which pages a hidden parent page covers with Get page visibility. Change a page's title, description, or image with Update SEO settings, which can also set noindex on several pages in one call.

A successful call means the setting is saved. The live site can take a little while to catch up.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>

patch/api/apps/{app_id}/seo/page-settings/{page_name}

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/seo/page-settings/{page_name}
  • Auth: HTTP bearer

Path parameters

page_namestring required

Name of the page, the same key it has in pages in Get SEO settings. That's the page's component name as it appears in the app's code, with any folder under pages in front of it, such as About or services/HouseWashing. The home page goes by its own name, such as Home, not /. The name is case-sensitive, and you can send its slashes as they are or encoded as %2F.

app_idstring required

ID of the app whose SEO settings you want.

Request body

noindexboolean nullable

Set to true to hide the page from search engines, or false to make it visible again. Leaving it out or sending null keeps the saved value and returns the page's current settings.

ignore_parent_noindexboolean nullable

Set to true to keep this page visible to search engines when a parent page is hidden (e.g. /units/:id while Units is hidden). It never overrides the page's own noindex.

Example request

{
  "noindex": true,
  "ignore_parent_noindex": true
}

Response

The page's settings after the change.

Example response

{
  "result": {
    "title": "Acme CRM",
    "description": "Track leads and deals in one place.",
    "og_image": "https://cdn.example.com/acme-og.png"
  }
}

Changes