Create Attribute Description
POST/v2/attribute-descriptions
Creates a new Attribute Description
Request
- application/json
Body
required
The Attribute Description to create
Array [
]
Array [
]
Array [
]
Descriptive identifier (Screaming Snake Case)
descriptions
object[]
required
Attribute descriptions per language
Possible values: >= 2 characters
and <= 2 characters
Localized field language code
Localized field value
units
object[]
Attribute unit per language
Possible values: >= 2 characters
and <= 2 characters
Localized field language code
Localized field value
Possible values: [text
, enum
, color
, datetime
, integer
, decimal
]
Attribute type. One of: [text, enum, color, datetime, integer, decimal]
Possible values: [product
, category
, cluster
, customer
, contact
, company
]
Attribute class. One of: [product, category, cluster, customer, contact, company]
Unique identifier for the connected valueset
Possible values: <= 64 characters
The attribute group
Default value: true
Flags whether this attribute should be used when generating catalog page filters
Default value: true
Flags whether this attribute should be used when generating product specifications.
Flags whether this attribute is only available to system users
Flags whether this attribute is hidden and should only be used for background operations.
defaultValue
object
required
textValues
object[]
Attribute value descriptions per language, required for TEXT type attributes
Possible values: >= 2 characters
and <= 2 characters
Language is set as 2 character country code.
List of localized string values
Attribute enum values, required for ENUM type attributes
Attribute integer value, required for INTEGER type attributes
Attribute decimal value, required for DECIMAL type attributes
Attribute datetime value, required for DATETIME type attributes
Attribute color value, required for COLOR type attributes
Responses
- 201
- 400
- 401
- 409
- 500
The created Attribute description
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
- AttributeTextValue
- AttributeEnumValue
- AttributeIntValue
- AttributeDecimalValue
- AttributeColorValue
- AttributeDateTimeValue
Array [
]
Attribute description primary identifier
Descriptive identifier for this AttributeDescription
descriptions
object[]
required
The human readable description of the attribute's name. This is a language specific value.
Possible values: >= 2 characters
and <= 2 characters
Language is set as 2 character country code.
Localized field value
units
object[]
nullable
required
Attribute unit per language
Possible values: >= 2 characters
and <= 2 characters
Language is set as 2 character country code.
Localized field value
Possible values: [text
, enum
, color
, datetime
, integer
, decimal
]
The class for this attribute. One of: [product, category, cluster, customer, contact, company]
Possible values: [product
, category
, cluster
, customer
, contact
, company
]
Attribute class. One of: [product, category, cluster, customer, contact, company]
The ID of the connected valueset to use when type is ENUM
The group this attribute belongs to, generally linked to a valueset.
Flags whether this attribute should be used when generating catalog page filters
Default value: true
Flags whether this attribute should be used when generating product specifications.
Flags whether this attribute is only available to system users
Flags whether this attribute is hidden and should only be used for background operations.
Attribute description creation date
Attribute description last modified date
The userId of the user that created the attribute description
The userId of the user that last modified the attribute description
defaultValue
object
required
The default value for this attribute
oneOf
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
textValues
object[]
required
Attribute textValues per language
Possible values: >= 2 characters
and <= 2 characters
Language is set as 2 character country code.
List of localized string values
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
Attribute enum values
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
Attribute integer value
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
Attribute decimal value
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
Attribute color value, stored as a hex string
Possible values: >= 36 characters
and <= 36 characters
Unique identifier of the attribute value
Default value: CURRENT_TIMESTAMP
Attribute value creation date
Default value: CURRENT_TIMESTAMP
Attribute value last modified date
The userId of the user that created the attribute value
The userId of the user that last modified the attribute description
Attribute decimal value
{
"id": "e1de4af7-7301-44bc-a2d7-02342310ea34",
"name": "ATTRIBUTE_NAME",
"descriptions": [
{
"language": "NL",
"value": "Dutch desc."
},
{
"language": "DE",
"value": "German desc."
}
],
"units": [
{
"language": "NL",
"value": "Dutch unit."
},
{
"language": "DE",
"value": "German unit."
}
],
"attributeClass": "text",
"type": "product",
"valuesetId": 1234,
"group": "ATTRIBUTE_GROUP",
"isSearchable": true,
"isPublic": true,
"isSystem": false,
"isHidden": false,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"createdBy": 1234,
"lastModifiedBy": 1234,
"defaultValue": {}
}
Bad request
Unauthorized
- application/json
- Schema
- invalid_client_id
- invalid_client_cred
Schema
any
{
"ErrorCode": "invalid_client",
"Error": "ClientId is Invalid"
}
{
"ErrorCode": "invalid_client",
"Error": "Client credentials are invalid"
}
Attribute Description already exists
Unknown create Attribute Description error