Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.71 KB

update-location-custom-attribute-definition-response.md

File metadata and controls

57 lines (48 loc) · 1.71 KB

Update Location Custom Attribute Definition Response

Represents an UpdateLocationCustomAttributeDefinition response. Either custom_attribute_definition or errors is present in the response.

Structure

Update Location Custom Attribute Definition Response

Fields

Name Type Tags Description
custom_attribute_definition Custom Attribute Definition Hash Optional Represents a definition for custom attribute values. A custom attribute definition
specifies the key, visibility, schema, and other properties for a custom attribute.
errors Array<Error Hash> Optional Any errors that occurred during the request.

Example (as JSON)

{
  "custom_attribute_definition": {
    "created_at": "2022-12-02T19:06:36.559Z",
    "description": "Update the description as desired.",
    "key": "bestseller",
    "name": "Bestseller",
    "schema": {
      "key1": "val1",
      "key2": "val2"
    },
    "updated_at": "2022-12-02T19:34:10.181Z",
    "version": 2,
    "visibility": "VISIBILITY_READ_ONLY"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}