> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# SetSiteSeoTags

# Package: seo

# Namespace: SiteSeoTagsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/seo/site-seo-tags-v1/set-site-seo-tags.md

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

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](https://dev.wix.com/docs/api-reference/business-management/seo/site-seo-tags-v1/get-site-seo-tags.md)
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.

---

## REST API

### Schema

```
 Method: setSiteSeoTags
 Description: 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](https://dev.wix.com/docs/api-reference/business-management/seo/site-seo-tags-v1/get-site-seo-tags.md) 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.
 URL: https://www.wixapis.com/seo-metatags-server/v1/site-seo-tags
 Method: PATCH
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  siteSeoTags, fieldMask
 Method parameters: 
   param name: fieldMask | type: fieldMask | description: Fields to update.  Supported properties: `tags`  Over REST, send the mask as a comma-separated string, for example `"fieldMask": "tags"`. The JavaScript SDK takes an array of strings instead, for example `fieldMask: ["tags"]`. | required: true 
   param name: siteSeoTags | type: SiteSeoTags | description: Site-wide SEO tags are the meta tags that apply to every page of a site, such as site verification tags, the default social share image, and whether search engines may index the site.  A site has exactly one set of site SEO tags. Tags that belong to a single page, such as titles and descriptions, are managed with the Item SEO Tags API, and the patterns that generate them with the SEO Patterns API. | required: true 
        - name: tags | type: array<Tag> | description: Site-wide tags that apply to every page of the site.  Supported tags:  - `og:image`: Default social share image for the site. - `robots` with a `noindex` or `none` directive: Stops search engines indexing the site. - Site verification tags, such as `google-site-verification`, `msvalidate.01`, `p:domain_verify`, and `yandex-verification`. A site supports a single tag per verification provider. - Other site-wide meta tags, specified as a `name` and `content` pair.  Every tag above is of type `meta`. `Tag.type` also lists `title`, `script`, and `link` as generally supported values, but none of those are accepted here. The whole call is rejected and no tags are changed; the error code depends on which part of the tag is invalid:  - `FIELD_NOT_ALLOWED`: the tag's content is fine and only its type isn't allowed at site level. For example, a well-formed `script` tag carrying structured data (JSON-LD) intended for the whole site — there's no site-wide equivalent of that today. - `INVALID_TAGS`: the tag's content is also invalid, so it fails the shared tag validation that runs first. For example, a `script` tag whose `type` property isn't `application/ld+json`, or one carrying malformed JSON-LD.  Tags that belong to a single page, such as titles, descriptions, canonical links, and per-page structured data, aren't site-wide. Set those with the [Item SEO Tags API](https://dev.wix.com/docs/api-reference/business-management/seo/item-seo-tags-v1/introduction.md).  Each tag can be up to 4,096 bytes, measured as its serialized JSON. A structured-data tag (`script` with `props.type` set to `application/ld+json`) can hold up to 12,000 characters of JSON-LD, and all structured data in one list up to 409,600 bytes.  | validation: maxItems 100
           - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
           - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
           - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
           - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
           - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
           - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  
 Return type: SetSiteSeoTagsResponse
  - name: siteSeoTags | type: SiteSeoTags | description: Updated site SEO tags.  
     - name: id | type: string | description: Site GUID.  | read-only: true | validation: format GUID
     - name: tags | type: array<Tag> | description: Site-wide tags that apply to every page of the site.  Supported tags:  - `og:image`: Default social share image for the site. - `robots` with a `noindex` or `none` directive: Stops search engines indexing the site. - Site verification tags, such as `google-site-verification`, `msvalidate.01`, `p:domain_verify`, and `yandex-verification`. A site supports a single tag per verification provider. - Other site-wide meta tags, specified as a `name` and `content` pair.  Every tag above is of type `meta`. `Tag.type` also lists `title`, `script`, and `link` as generally supported values, but none of those are accepted here. The whole call is rejected and no tags are changed; the error code depends on which part of the tag is invalid:  - `FIELD_NOT_ALLOWED`: the tag's content is fine and only its type isn't allowed at site level. For example, a well-formed `script` tag carrying structured data (JSON-LD) intended for the whole site — there's no site-wide equivalent of that today. - `INVALID_TAGS`: the tag's content is also invalid, so it fails the shared tag validation that runs first. For example, a `script` tag whose `type` property isn't `application/ld+json`, or one carrying malformed JSON-LD.  Tags that belong to a single page, such as titles, descriptions, canonical links, and per-page structured data, aren't site-wide. Set those with the [Item SEO Tags API](https://dev.wix.com/docs/api-reference/business-management/seo/item-seo-tags-v1/introduction.md).  Each tag can be up to 4,096 bytes, measured as its serialized JSON. A structured-data tag (`script` with `props.type` set to `application/ld+json`) can hold up to 12,000 characters of JSON-LD, and all structured data in one list up to 409,600 bytes.  | validation: maxItems 100
        - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
        - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
        - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
        - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
        - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
        - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  
     - name: embedTags | type: array<Tag> | description: Site verification tags that were added through the site's SEO settings in the dashboard, which stores them as HTML embeds rather than as site tags.  Returned so that a read reflects every verification tag on the site. These tags are never included in `tags`. Empty when the site has none, and also when they can't be retrieved.  | read-only: true | validation: maxItems 500
     - name: language | type: string | description: Language the tags apply to.  Site SEO tags aren't language specific: one set of tags applies to every language version of a site. Currently always empty.  | read-only: true | validation: maxLength 100
     - name: origin | type: Origin | description: What made the most recent change to the site's tags, for example a user or the site migration flow. Derived from the caller, not from the request.  `ORIGIN_UNSPECIFIED` when the caller isn't one Wix identifies as a specific origin. Origin isn't stored with the tags either, so Get Site SEO Tags always returns `ORIGIN_UNSPECIFIED`.  | read-only: true 
         - enum:
         -     ORIGIN_UNSPECIFIED: Unknown origin. Returned by read methods, because origin isn't stored alongside the data it describes.
         -     ORIGIN_USER: A user, working in the dashboard or editor, or calling the API on their own behalf.
         -     ORIGIN_MIGRATION: The flow that imports an existing site into Wix.
         -     ORIGIN_AI: An AI agent or an automated suggestion flow.

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_FIELD_MASK | Description: The `fieldMask` is empty, or names a field that doesn't exist or can't be changed.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_TAGS | Description: A tag isn't valid at site level. For example, the tag belongs to a single page rather than the whole site, its value isn't valid for that tag, it uses an unsupported `robots` directive, or it repeats a verification provider that supports a single tag. `data.summary` names the first few problems in words, and `description` lists every problem as a JSON array.


```

### Examples

### Add a social share image to a site's SEO tags
The request carries the tags the site already has together with the new `og:image` tag, because the tags sent replace the site's tags in full.

```curl
curl -X PATCH \
'https://www.wixapis.com/seo-metatags-server/v1/site-seo-tags' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "siteSeoTags": {
    "tags": [
      {
        "type": "meta",
        "props": {
          "name": "description",
          "content": "Handmade ceramics from a small studio in Lisbon."
        }
      },
      {
        "type": "meta",
        "props": {
          "property": "og:image",
          "content": "https://static.wixstatic.com/media/a1b2c3_9f8e7d6c5b4a3210.jpg"
        }
      }
    ]
  },
  "fieldMask": "tags"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.seo.siteSeoTags.setSiteSeoTags(siteSeoTags, options)
 Description: 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](https://dev.wix.com/docs/api-reference/business-management/seo/site-seo-tags-v1/get-site-seo-tags.md) 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.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  siteSeoTags, options.fieldMask, options
 Method parameters: 
   param name: siteSeoTags | type: SiteSeoTags | description: Site-wide SEO tags are the meta tags that apply to every page of a site, such as site verification tags, the default social share image, and whether search engines may index the site.  A site has exactly one set of site SEO tags. Tags that belong to a single page, such as titles and descriptions, are managed with the Item SEO Tags API, and the patterns that generate them with the SEO Patterns API. | required: true 
        - name: tags | type: array<Tag> | description: Site-wide tags that apply to every page of the site.  Supported tags:  - `og:image`: Default social share image for the site. - `robots` with a `noindex` or `none` directive: Stops search engines indexing the site. - Site verification tags, such as `google-site-verification`, `msvalidate.01`, `p:domain_verify`, and `yandex-verification`. A site supports a single tag per verification provider. - Other site-wide meta tags, specified as a `name` and `content` pair.  Every tag above is of type `meta`. `Tag.type` also lists `title`, `script`, and `link` as generally supported values, but none of those are accepted here. The whole call is rejected and no tags are changed; the error code depends on which part of the tag is invalid:  - `FIELD_NOT_ALLOWED`: the tag's content is fine and only its type isn't allowed at site level. For example, a well-formed `script` tag carrying structured data (JSON-LD) intended for the whole site — there's no site-wide equivalent of that today. - `INVALID_TAGS`: the tag's content is also invalid, so it fails the shared tag validation that runs first. For example, a `script` tag whose `type` property isn't `application/ld+json`, or one carrying malformed JSON-LD.  Tags that belong to a single page, such as titles, descriptions, canonical links, and per-page structured data, aren't site-wide. Set those with the [Item SEO Tags API](https://dev.wix.com/docs/api-reference/business-management/seo/item-seo-tags-v1/introduction.md).  Each tag can be up to 4,096 bytes, measured as its serialized JSON. A structured-data tag (`script` with `props.type` set to `application/ld+json`) can hold up to 12,000 characters of JSON-LD, and all structured data in one list up to 409,600 bytes.  | validation: maxItems 100
           - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
           - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
           - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
           - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
           - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
           - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  
   param name: options | type: SetSiteSeoTagsOptions  none | required: true 
        - name: fieldMask | type: array<string> | description: Fields to update.  Supported properties: `tags`  Over REST, send the mask as a comma-separated string, for example `"fieldMask": "tags"`. The JavaScript SDK takes an array of strings instead, for example `fieldMask: ["tags"]`. | required: true 
 Return type: PROMISE<SetSiteSeoTagsResponse>
  - name: siteSeoTags | type: SiteSeoTags | description: Updated site SEO tags.  
     - name: _id | type: string | description: Site GUID.  | read-only: true | validation: format GUID
     - name: tags | type: array<Tag> | description: Site-wide tags that apply to every page of the site.  Supported tags:  - `og:image`: Default social share image for the site. - `robots` with a `noindex` or `none` directive: Stops search engines indexing the site. - Site verification tags, such as `google-site-verification`, `msvalidate.01`, `p:domain_verify`, and `yandex-verification`. A site supports a single tag per verification provider. - Other site-wide meta tags, specified as a `name` and `content` pair.  Every tag above is of type `meta`. `Tag.type` also lists `title`, `script`, and `link` as generally supported values, but none of those are accepted here. The whole call is rejected and no tags are changed; the error code depends on which part of the tag is invalid:  - `FIELD_NOT_ALLOWED`: the tag's content is fine and only its type isn't allowed at site level. For example, a well-formed `script` tag carrying structured data (JSON-LD) intended for the whole site — there's no site-wide equivalent of that today. - `INVALID_TAGS`: the tag's content is also invalid, so it fails the shared tag validation that runs first. For example, a `script` tag whose `type` property isn't `application/ld+json`, or one carrying malformed JSON-LD.  Tags that belong to a single page, such as titles, descriptions, canonical links, and per-page structured data, aren't site-wide. Set those with the [Item SEO Tags API](https://dev.wix.com/docs/api-reference/business-management/seo/item-seo-tags-v1/introduction.md).  Each tag can be up to 4,096 bytes, measured as its serialized JSON. A structured-data tag (`script` with `props.type` set to `application/ld+json`) can hold up to 12,000 characters of JSON-LD, and all structured data in one list up to 409,600 bytes.  | validation: maxItems 100
        - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
        - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
        - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
        - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
        - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
        - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  
     - name: embedTags | type: array<Tag> | description: Site verification tags that were added through the site's SEO settings in the dashboard, which stores them as HTML embeds rather than as site tags.  Returned so that a read reflects every verification tag on the site. These tags are never included in `tags`. Empty when the site has none, and also when they can't be retrieved.  | read-only: true | validation: maxItems 500
     - name: language | type: string | description: Language the tags apply to.  Site SEO tags aren't language specific: one set of tags applies to every language version of a site. Currently always empty.  | read-only: true | validation: maxLength 100
     - name: origin | type: Origin | description: What made the most recent change to the site's tags, for example a user or the site migration flow. Derived from the caller, not from the request.  `ORIGIN_UNSPECIFIED` when the caller isn't one Wix identifies as a specific origin. Origin isn't stored with the tags either, so Get Site SEO Tags always returns `ORIGIN_UNSPECIFIED`.  | read-only: true 
         - enum:
         -     ORIGIN_UNSPECIFIED: Unknown origin. Returned by read methods, because origin isn't stored alongside the data it describes.
         -     ORIGIN_USER: A user, working in the dashboard or editor, or calling the API on their own behalf.
         -     ORIGIN_MIGRATION: The flow that imports an existing site into Wix.
         -     ORIGIN_AI: An AI agent or an automated suggestion flow.

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_FIELD_MASK | Description: The `fieldMask` is empty, or names a field that doesn't exist or can't be changed.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_TAGS | Description: A tag isn't valid at site level. For example, the tag belongs to a single page rather than the whole site, its value isn't valid for that tag, it uses an unsupported `robots` directive, or it repeats a verification provider that supports a single tag. `data.summary` names the first few problems in words, and `description` lists every problem as a JSON array.


```

### Examples

### Add a social share image to a site's SEO tags
The request carries the tags the site already has together with the new og:image tag, because the tags sent replace the site's tags in full.

```javascript
import { siteSeoTags } from "@wix/seo";

async function setSiteSeoTags() {
  const response = await siteSeoTags.setSiteSeoTags(
    {
      tags: [
        {
          type: "meta",
          props: { name: "description", content: "Handmade ceramics from a small studio in Lisbon." },
        },
        {
          type: "meta",
          props: {
            property: "og:image",
            content: "https://static.wixstatic.com/media/a1b2c3_9f8e7d6c5b4a3210.jpg",
          },
        },
      ],
    },
    { fieldMask: ["tags"] },
  );
  return response;
}

/* Promise resolves to:
 * {
 *   "siteSeoTags": {
 *     "tags": [
 *       {
 *         "type": "meta",
 *         "props": { "name": "description", "content": "Handmade ceramics from a small studio in Lisbon." },
 *         "children": "",
 *         "custom": false,
 *         "disabled": false
 *       },
 *       {
 *         "type": "meta",
 *         "props": { "property": "og:image", "content": "https://static.wixstatic.com/media/a1b2c3_9f8e7d6c5b4a3210.jpg" },
 *         "children": "",
 *         "custom": false,
 *         "disabled": false
 *       }
 *     ],
 *     "embedTags": [],
 *     "origin": "ORIGIN_UNSPECIFIED",
 *     "_id": "118f445d-6b84-4268-821d-7d2b9f40ac60"
 *   }
 * }
 */

```

### setSiteSeoTags (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { siteSeoTags } from '@wix/seo';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { siteSeoTags },
  // Include the auth strategy and host as relevant
});


async function setSiteSeoTags(siteSeoTags,options) {
  const response = await myWixClient.siteSeoTags.setSiteSeoTags(siteSeoTags,options);
};
```

---