Update Attribute Description
PATCH/v2/attribute-descriptions/:lookupKey/:lookupValue
Updates an Attribute Description by lookupKey and lookupValue
Request
Path Parameters
Possible values: [id
, name
]
The lookupKey to find the Attribute Description by, either 'id' or 'name'
The lookupValue to find the Attribute Description by, i.e. the id or the name
Query Parameters
Possible values: [product
, category
, cluster
, customer
, contact
, company
]
The resourceType to get the Attribute Description for. Required when lookupKey is 'name'
- application/json
Body
required
The Attribute Description to update
Array [
]
Array [
]
Array [
]
descriptions
object[]
Attribute descriptions per language
Localized field language code
Possible values: >= 2 characters
and <= 2 characters
EN
Localized field value
example value
units
object[]
Attribute unit per language
Localized field language code
Possible values: >= 2 characters
and <= 2 characters
EN
Localized field value
example value
The attribute group
Possible values: <= 64 characters
group
Flags whether this attribute should be used when generating catalog page filters
true
Flags whether this attribute should be used when generating product specifications.
true
Flags whether this attribute is only available to system users
false
Flags whether this attribute is hidden and should only be used for background operations.
false
defaultValue
object
textValues
object[]
Attribute value descriptions per language, required for TEXT type attributes
Language is set as 2 character country code.
Possible values: >= 2 characters
and <= 2 characters
EN
List of localized string values
["Hello","World"]
Attribute enum values, required for ENUM type attributes
["VALUE_1","VALUE_2"]
Attribute integer value, required for INTEGER type attributes
42
Attribute decimal value, required for DECIMAL type attributes
9.99
Attribute datetime value, required for DATETIME type attributes
2021-01-01T00:00:00Z
Attribute color value, required for COLOR type attributes
#000000
Responses
- 400
- 401
- 404
- 409
- 500
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
Attribute Description already exists
Unknown create Attribute Description error