content.accounts.update

PUT {{baseUrl}}/content/v2/:merchantId/accounts/:accountId?dryRun=<boolean>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.

Request Params

KeyDatatypeRequiredDescription
dryRunstringFlag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

Request Body

{"adultContent"=>"<boolean>", "adwordsLinks"=>[{"adwordsId"=>"<uint64>", "status"=>"<string>"}, {"adwordsId"=>"<uint64>", "status"=>"<string>"}], "businessInformation"=>{"address"=>{"country"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "locality"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "postalCode"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "region"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "streetAddress"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "customerService"=>{"email"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "phoneNumber"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "url"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "phoneNumber"=>"<string>"}, "googleMyBusinessLink"=>{"gmbEmail"=>"<string>", "status"=>"<string>"}, "id"=>"<uint64>", "kind"=>"<string>", "name"=>"<string>", "reviewsUrl"=>"<string>", "sellerId"=>"<string>", "users"=>[{"admin"=>"<boolean>", "emailAddress"=>"<string>", "orderManager"=>"<boolean>", "paymentsAnalyst"=>"<boolean>", "paymentsManager"=>"<boolean>"}, {"admin"=>"<boolean>", "emailAddress"=>"<string>", "orderManager"=>"<boolean>", "paymentsAnalyst"=>"<boolean>", "paymentsManager"=>"<boolean>"}], "websiteUrl"=>"<string>", "youtubeChannelLinks"=>[{"channelId"=>"<string>", "status"=>"<string>"}, {"channelId"=>"<string>", "status"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;adultContent&quot;:&quot;\u003cboolean\u003e&quot;,&quot;adwordsLinks&quot;:[{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}],&quot;businessInformation&quot;:{&quot;address&quot;:{&quot;country&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;locality&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;postalCode&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;region&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;streetAddress&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;customerService&quot;:{&quot;email&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;phoneNumber&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;url&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;phoneNumber&quot;:&quot;\u003cstring\u003e&quot;},&quot;googleMyBusinessLink&quot;:{&quot;gmbEmail&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},&quot;id&quot;:&quot;\u003cuint64\u003e&quot;,&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;reviewsUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;sellerId&quot;:&quot;\u003cstring\u003e&quot;,&quot;users&quot;:[{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;websiteUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;youtubeChannelLinks&quot;:[{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}]}