---
title: "POST /datafeeds/batch"
method: POST
path: "/datafeeds/batch"
tags: ["datafeeds"]
---

# POST /datafeeds/batch

`POST /datafeeds/batch`

Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.

## Request body

- DatafeedsCustomBatchRequest
  - `entries` DatafeedsCustomBatchRequestEntry[] — The request entries to be processed in the batch.
    - `merchantId` string, uint64 — The ID of the managing account.
    - `batchId` integer — An entry ID, unique within the batch request.
    - `datafeedId` string, uint64 — The ID of the data feed to get, delete or fetch.
    - `method` string — The method of the batch entry. Acceptable values are: - "`delete`" - "`fetchNow`" - "`get`" - "`insert`" - "`update`"
    - `datafeed` Datafeed — Datafeed configuration data.
      - `name` string — Required for insert. A descriptive name of the data feed.
      - `format` DatafeedFormat
        - `quotingMode` string — Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`"
        - `fileEncoding` string — Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`"
        - `columnDelimiter` string — Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`"
      - `fetchSchedule` DatafeedFetchSchedule — The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required.
        - `timeZone` string — Time zone used for schedule. UTC by default. For example, "America/Los_Angeles".
        - `password` string — An optional password for fetch_url.
        - `minuteOfHour` integer — The minute of the hour the feed file should be fetched (0-59). Read-only.
        - `weekday` string — The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`"
        - `hour` integer — The hour of the day the feed file should be fetched (0-23).
        - `fetchUrl` string — The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one of those four protocols.
        - `dayOfMonth` integer — The day of the month the feed file should be fetched (1-31).
        - `paused` boolean — Whether the scheduled fetch is paused or not.
        - `username` string — An optional user name for fetch_url.
      - `kind` string — Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
      - `id` string, int64 — Required for update. The ID of the data feed.
      - `attributeLanguage` string — The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
      - `fileName` string — Required. The filename of the feed. All feeds must have a unique file name.
      - `targets` DatafeedTarget[] — The targets this feed should apply to (country, language, destinations).
        - `includedDestinations` string[] — The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.
        - `targetCountries` string[] — The countries where the items may be displayed. Represented as a CLDR territory code. Will be ignored for "product inventory" feeds.
        - `excludedDestinations` string[] — The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted.
        - `feedLabel` string — Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both `feedLabel` and `country` is specified, the values must match. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).
        - `country` string — Deprecated. Use `feedLabel` instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code.
        - `language` string — The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`.
      - `contentType` string — Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`"

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/content.md) · [All operations](https://skmtc.net/google/apis/content/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/content/revisions/1033388fc86f/schema)
