---
title: "Update Domains Setting"
method: PUT
path: "/settings/domains"
tags: ["Settings"]
---

# Update Domains Setting

`PUT /settings/domains`

To update domain verification settings
including Google, Bing, Facebook, Pinterest, and Google Merchant Center<br>
更新第三方網域工具設定，包括 Google、Bing、Facebook、Pinterest 和 Google Merchant Center

## Request body

- object
  - `webmasters` object, required
    - `google` string — Google Search Console verification code
    - `bing` string — Bing Webmaster Tools verification code
    - `facebook_domain_verification` string — Facebook domain verification code
    - `pinterest_domain_verification` string — Pinterest domain verification code
    - `google_merchant_center` string — Google Merchant Center verification code
    - `google_merchant_id` string — Google Merchant Center ID

## Response `200`

Domains setting updated successfully

- DomainsSetting
  - `webmasters` DomainsSettingWebmaster
    - `google` string — Google Search Console<br>Google網站管理員工具
    - `bing` string — Bing Webmaster<br>Bing網站管理員工具
    - `facebook_domain_verification` string — Facebook Domain Verification<br>Facebook 網域驗證
    - `pinterest_domain_verification` string — Pinterest Domain Verification<br>Pinterest 網域驗證
    - `google_merchant_center` string — Google Merchant Center<br>Google Merchant Center
    - `google_merchant_id` string — Google Merchant ID<br>Google Merchant ID

## Other responses

- `400` — Bad request - Invalid domains setting data
- `401` — Unauthorized - Invalid access token
- `422` — Unprocessable entity - Validation error
- `500` — Server error

---

[API](https://skmtc.net/shoplineapp/apis/shopline-open-api.md) · [All operations](https://skmtc.net/shoplineapp/apis/shopline-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shoplineapp/shopline-open-api/revisions/1675ac12cde7/schema)
