Get an Attribute Description by lookupKey and lookupValue
GET/v2/attribute-descriptions/:lookupKey/:lookupValue
Gets an Attribute Description by lookupKey and lookupValue
Request
Path Parameters
Possible values: [id
, name
]
The class to list the attributes for
The lookupValue to find the class object by, i.e. the id or sourceId
Query Parameters
Possible values: [product
, category
, cluster
, customer
, contact
, company
]
The attributeClass to get the attribute for. Required when lookupKey is 'name'
Responses
- 200
- 400
- 401
- 404
- 500
A single 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 not found
Unknown get Attribute Description error