Get attribute by lookup key
GET/attributes/:lookupKey/:lookupValue
This endpoint is used to retrieve details of an attribute. The attribute is identified by it's Propeller Id or name. The attributeClass
Query Param is useful to use when the same attribute name is used for an attribute with a different class.
Request
Path Parameters
Lookup key. Use id
or name
The id
or name
of the attribute
Query Parameters
Attribute class. Optional. Used in combination with lookup key name
. Possible values are product
, category
, user
Responses
- 200
- 404
Get attribute by Id - 200 / Get attribute by name and class - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get attribute by Id - 200
- Get attribute by name and class - 200
Schema
Array [
]
Array [
]
- MOD1
- MOD2
Array [
]
data
object
descriptions
object[]
units
object[]
value
object
anyOf
string
{
"data": {
"class": "product",
"defaultLanguage": "EN",
"descriptions": [
{
"language": "EN",
"value": "Color"
},
{
"language": "NL",
"value": "Kleur"
}
],
"group": "",
"id": 668,
"isHidden": false,
"isPublic": true,
"isSearchable": false,
"isSystem": false,
"name": "COLOR",
"type": "enum",
"typeParam": "COLORS",
"units": [
{
"language": "EN",
"value": ""
},
{
"language": "NL",
"value": ""
}
],
"value": ""
},
"messages": [],
"total": 1
}
{
"data": {
"class": "product",
"defaultLanguage": "EN",
"descriptions": [
{
"language": "EN",
"value": "Color"
},
{
"language": "NL",
"value": "Kleur"
}
],
"group": "",
"id": 668,
"isHidden": false,
"isPublic": true,
"isSearchable": false,
"isSystem": false,
"name": "COLOR",
"type": "enum",
"typeParam": "COLORS",
"units": [
{
"language": "EN",
"value": ""
},
{
"language": "NL",
"value": ""
}
],
"value": ""
},
"messages": [],
"total": 1
}
{
"data": {
"class": "product",
"defaultLanguage": "NL",
"descriptions": [
{
"language": "NL",
"value": "Framemateriaal"
},
{
"language": "EN",
"value": "Frame material"
}
],
"group": "",
"id": 85,
"isHidden": false,
"isPublic": true,
"isSearchable": false,
"isSystem": false,
"name": "MATERIAAL_FRAME",
"type": "text",
"typeParam": "",
"units": [
{
"language": "NL",
"value": ""
},
{
"language": "EN",
"value": ""
}
],
"value": []
},
"messages": [],
"total": 1
}
Get attribute by Id - 404 / Get attribute by name and class - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get attribute by Id - 404
- Get attribute by name and class - 404
Schema
error
object
{
"error": {
"code": 14001,
"messages": [
"Attribute with id [800] not found."
],
"moreInfo": "https://www.propel.us/docs/errors/14001",
"status": 404,
"type": "AttributeNotFound"
}
}
{
"error": {
"code": 14001,
"messages": [
"Attribute with id [800] not found."
],
"moreInfo": "https://www.propel.us/docs/errors/14001",
"status": 404,
"type": "AttributeNotFound"
}
}
{
"error": {
"code": 14001,
"messages": [
"Attribute with name [MATERIAAL_FRAME] and attributeClass [category] not found."
],
"moreInfo": "https://www.propel.us/docs/errors/14001",
"status": 404,
"type": "AttributeNotFound"
}
}