PATCH

Set Site Seo Tags


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sets a site's site-wide SEO tags.

List the fields to change in fieldMask.

Setting tags replaces the site's tags in full, so retrieve the current tags with Get Site SEO Tags and send back the complete set you want the site to have. Two consequences are easy to miss:

  • Leaving out the robots tag makes the site indexable again, because no noindex directive remains.
  • Leaving out og:image clears the site's default social share image.

To remove every site tag, send tags as an empty list with tags in the field mask. Site verification tags added through the dashboard are stored separately and aren't affected.

Tags are validated before anything is saved, so a request that contains an invalid tag changes nothing.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage SEO Settings
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/seo-metatags-server/v1/site-seo-tags

Errors
400Invalid Argument

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?