Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite
Path parameters
Parameters
merchantId
string
The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
accountId
string
The ID of the account whose website is claimed.
Query parameters
Parameters
overwrite
boolean
Only available to selected merchants, for example multi-client accounts (MCAs) and their sub-accounts. When set to True, this option removes any existing claim on the requested website and replaces it with a claim from the account that makes the request.
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation
{"kind": string}
Fields
kind
string
Identifies what kind of resource this is. Value: the fixed string "content#accountsClaimWebsiteResponse".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-30 UTC."],[[["Claims a website for a Merchant Center sub-account, unless it's managed by an approved third-party CSS."],["Requires a `POST` request to the specified endpoint with `merchantId` and `accountId` as path parameters."],["Optionally, uses the `overwrite` query parameter to replace existing website claims."],["An empty request body is necessary for this operation."],["Upon successful execution, the response includes a confirmation with the kind \"`content#accountsClaimWebsiteResponse`\"."]]],["This document details the process for claiming a website for a Merchant Center sub-account via an API. The core action involves sending a `POST` HTTP request to a specified URL, including the `merchantId` and `accountId` as path parameters. The `overwrite` query parameter, if set to `true`, allows replacing existing website claims. The request body should be empty. A successful response includes a JSON body with a `kind` field indicating the resource type: \"`content#accountsClaimWebsiteResponse`\". The API requires specific OAuth authorization scopes.\n"]]