Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.68 KB

catalog-custom-attribute-value.md

File metadata and controls

36 lines (27 loc) · 1.68 KB

Catalog Custom Attribute Value

An instance of a custom attribute. Custom attributes can be defined and added to ITEM and ITEM_VARIATION type catalog objects. Read more about custom attributes.

Structure

Catalog Custom Attribute Value

Fields

Name Type Tags Description
name string Optional The name of the custom attribute.
string_value string Optional The string value of the custom attribute. Populated if type = STRING.
custom_attribute_definition_id string Optional Read-only. The id of the CatalogCustomAttributeDefinition this value belongs to.
type str (Catalog Custom Attribute Definition Type) Optional Defines the possible types for a custom attribute.
number_value string Optional Populated if type = NUMBER. Contains a string
representation of a decimal number, using a . as the decimal separator.
boolean_value bool Optional A true or false value. Populated if type = BOOLEAN.
selection_uid_values List of string Optional One or more choices from allowed_selections. Populated if type = SELECTION.
key string Optional Read-only. A copy of key from the associated CatalogCustomAttributeDefinition.

Example (as JSON)

{
  "name": "name0",
  "string_value": "string_value4",
  "custom_attribute_definition_id": "custom_attribute_definition_id2",
  "type": "NUMBER",
  "number_value": "number_value0"
}