Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.19 KB

create-order-custom-attribute-definition-request.md

File metadata and controls

34 lines (25 loc) · 1.19 KB

Create Order Custom Attribute Definition Request

Represents a create request for an order custom attribute definition.

Structure

Create Order Custom Attribute Definition Request

Fields

Name Type Tags Description
custom_attribute_definition Custom Attribute Definition Required Represents a definition for custom attribute values. A custom attribute definition
specifies the key, visibility, schema, and other properties for a custom attribute.
idempotency_key str Optional A unique identifier for this request, used to ensure idempotency.
For more information, see Idempotency.
Constraints: Minimum Length: 1, Maximum Length: 45

Example (as JSON)

{
  "custom_attribute_definition": {
    "description": "The number of people seated at a table",
    "key": "cover-count",
    "name": "Cover count",
    "schema": {
      "key1": "val1",
      "key2": "val2"
    },
    "visibility": "VISIBILITY_READ_WRITE_VALUES"
  },
  "idempotency_key": "IDEMPOTENCY_KEY"
}