Skip to content

Latest commit

 

History

History
93 lines (84 loc) · 2.53 KB

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

File metadata and controls

93 lines (84 loc) · 2.53 KB

Bulk Upsert Merchant Custom Attributes Request

Represents a BulkUpsertMerchantCustomAttributes request.

Structure

Bulk Upsert Merchant Custom Attributes Request

Fields

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

Example (as JSON)

{
  "values": {
    "key0": {
      "merchant_id": "merchant_id0",
      "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": {
      "merchant_id": "merchant_id0",
      "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"
    },
    "key2": {
      "merchant_id": "merchant_id0",
      "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"
    }
  }
}