content.datafeeds.update

PUT {{baseUrl}}/content/v2/:merchantId/datafeeds/:datafeedId?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 datafeed configuration of your 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

{"attributeLanguage"=>"<string>", "contentLanguage"=>"<string>", "contentType"=>"<string>", "fetchSchedule"=>{"dayOfMonth"=>"<uint32>", "fetchUrl"=>"<string>", "hour"=>"<uint32>", "minuteOfHour"=>"<uint32>", "password"=>"<string>", "paused"=>"<boolean>", "timeZone"=>"<string>", "username"=>"<string>", "weekday"=>"<string>"}, "fileName"=>"<string>", "format"=>{"columnDelimiter"=>"<string>", "fileEncoding"=>"<string>", "quotingMode"=>"<string>"}, "id"=>"<int64>", "intendedDestinations"=>["<string>", "<string>"], "kind"=>"<string>", "name"=>"<string>", "targetCountry"=>"<string>", "targets"=>[{"country"=>"<string>", "excludedDestinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "includedDestinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "language"=>"<string>"}, {"country"=>"<string>", "excludedDestinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "includedDestinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "language"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;attributeLanguage&quot;:&quot;\u003cstring\u003e&quot;,&quot;contentLanguage&quot;:&quot;\u003cstring\u003e&quot;,&quot;contentType&quot;:&quot;\u003cstring\u003e&quot;,&quot;fetchSchedule&quot;:{&quot;dayOfMonth&quot;:&quot;\u003cuint32\u003e&quot;,&quot;fetchUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;hour&quot;:&quot;\u003cuint32\u003e&quot;,&quot;minuteOfHour&quot;:&quot;\u003cuint32\u003e&quot;,&quot;password&quot;:&quot;\u003cstring\u003e&quot;,&quot;paused&quot;:&quot;\u003cboolean\u003e&quot;,&quot;timeZone&quot;:&quot;\u003cstring\u003e&quot;,&quot;username&quot;:&quot;\u003cstring\u003e&quot;,&quot;weekday&quot;:&quot;\u003cstring\u003e&quot;},&quot;fileName&quot;:&quot;\u003cstring\u003e&quot;,&quot;format&quot;:{&quot;columnDelimiter&quot;:&quot;\u003cstring\u003e&quot;,&quot;fileEncoding&quot;:&quot;\u003cstring\u003e&quot;,&quot;quotingMode&quot;:&quot;\u003cstring\u003e&quot;},&quot;id&quot;:&quot;\u003cint64\u003e&quot;,&quot;intendedDestinations&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;targetCountry&quot;:&quot;\u003cstring\u003e&quot;,&quot;targets&quot;:[{&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;excludedDestinations&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;includedDestinations&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;language&quot;:&quot;\u003cstring\u003e&quot;},{&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;excludedDestinations&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;includedDestinations&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;language&quot;:&quot;\u003cstring\u003e&quot;}]}