Method: inventory.partners.feeds.record.batchPush

Inserts and/or updates records of specified feed type. Only performs basic validation (like malformed request) after which an appropriate response is returned to the partner immediately. Google performs business logic validation on the request asynchronously. This batch call does not guarantee atomicity.

HTTP request

POST https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/feeds/*}/record:batchPush

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Resource name, which has the format of - partners/{partner_id}/feeds/{feed_name}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "records": [
    {
      object (GenericRecord)
    }
  ]
}
Fields
records[]

object (GenericRecord)

Records to be inserted and/or updated. Maximum of 1000 records are allowed in one api call.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/mapsbooking

GenericRecord

Record of the feed type mentioned in url request.

JSON representation
{
  "generationTimestamp": string,

  // Union field record_type can be only one of the following:
  "dataRecord": string,
  "protoRecord": {
    "@type": string,
    field1: ...,
    ...
  }
  // End of list of possible types for union field record_type.
}
Fields
generationTimestamp

string (Timestamp format)

Required. This timestamp is used to to ensure correct ordering of inventory updates.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Union field record_type. Encapsulate different types of feed (ndjson, proto-based, etc.) record_type can be only one of the following:
dataRecord

string (bytes format)

For non-proto based feeds.

A base64-encoded string.

protoRecord

object

For proto-based feeds.

An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type. Example: { "id": 1234, "@type": "types.example.com/standard/id" }.