Skip to content

Latest commit

 

History

History
70 lines (61 loc) · 1.87 KB

bulk-upsert-booking-custom-attributes-request.md

File metadata and controls

70 lines (61 loc) · 1.87 KB

Bulk Upsert Booking Custom Attributes Request

Represents a BulkUpsertBookingCustomAttributes request.

Structure

Bulk Upsert Booking Custom Attributes Request

Fields

Name Type Tags Description
values Hash String Booking Custom Attribute Upsert Request Hash Required A map containing 1 to 25 individual upsert requests. For each request, provide an
arbitrary ID that is unique for this BulkUpsertBookingCustomAttributes request and the
information needed to create or update a custom attribute.

Example (as JSON)

{
  "values": {
    "key0": {
      "booking_id": "booking_id4",
      "custom_attribute": {
        "key": "key2",
        "value": {
          "key1": "val1",
          "key2": "val2"
        },
        "version": 102,
        "visibility": "VISIBILITY_READ_ONLY",
        "definition": {
          "key": "key0",
          "schema": {
            "key1": "val1",
            "key2": "val2"
          },
          "name": "name0",
          "description": "description0",
          "visibility": "VISIBILITY_HIDDEN"
        }
      },
      "idempotency_key": "idempotency_key6"
    },
    "key1": {
      "booking_id": "booking_id4",
      "custom_attribute": {
        "key": "key2",
        "value": {
          "key1": "val1",
          "key2": "val2"
        },
        "version": 102,
        "visibility": "VISIBILITY_READ_ONLY",
        "definition": {
          "key": "key0",
          "schema": {
            "key1": "val1",
            "key2": "val2"
          },
          "name": "name0",
          "description": "description0",
          "visibility": "VISIBILITY_HIDDEN"
        }
      },
      "idempotency_key": "idempotency_key6"
    }
  }
}