"Page, Article, Blog"s SEO Data cannot be set to empty or null

Hello Devs,

I have been trying set title and description value to null in pageUpdate mutation. The variable value is like below:

{
  "id": "gid://shopify/Page/xxxx",
  "page": {
    "title": "This is the Title",
    "handle": "this-is-the-handle",
    "metafields": [
      {
        "key": "title_tag",
        "type": "string",
        "value": "",
        "namespace": "global"
      }
    ]
  }
}

But I cannot set the SEO title to null or blank. Though it can be blanked via shopify editor.
This results in inconsistent behaviour relative to productUpdate and collectionUpdate.

Any work around on this matter?

Hi @illusionist3886

There is currently no supported API workaround to clear the SEO title or description for a page - the only way to clear these fields is through the Shopify Admin UI.

You can set SEO metafields to empty strings for products and collections, but not for pages - this is a known limitation and inconsistency in our API.

Just to be clear, you’re actually attempting to set a metafield value here? Not the SEO data?