Update Product Attribute

Updates a product attribute by its FQN. This current version of the Attributes API includes localizedContent to support multi-locale catalogs, which was not present in the previous API model. If you were a client prior to May 2024 and have upgraded your implementation to support this feature, you can still access attribute data that has not yet been rewritten to the new model by providing an x-api-version header set to "1".

Path Params
string
required
Query Params
string

limits which fields are returned in the response body

Body Params
string | null

Name of the product displayed in the admin, This field does not need to be unqiue, but is required. It can include spaces...and is limited to a length of 50.

string | null

NameSpace, each application creating attributes will have a uniqe namespace to avoid name (Code) collisions. The namespace provided must be a valid registered
namespace. If no namespace is specified it is assumed to be the namespace of the Tenant.

string | null

Unique identifier of the Attribute. Must be unique within a namespace and cannot be changed once the attribute is created. This value will be generated and match the attribute
sequence if not provided on create.

string | null

Attribute fully qualified name, Read only value that combines namespace and attribute code as NameSpace~AttributeCode

boolean | null

Specifies if this attribute can can be used to generalize values of another attribute

string | null

Attribute fully qualified name of a corresponding value mapping atribuite

int32 | null

Read only System generated monotonically increasing unique sequence for each attribute created.

int32 | null

Read only System generated monotonically increasing unique sequence for each attribute,DataType created (this is used to optimize indexed field names in search).

int32 | null

Indentifier of the master that this attribute is a member of. System-supplied and read-only. Attributes will be created in the MasterCatalog of the supplied context.

string | null

The InputType type of the attribute. Must be a valid value for InputType defined in InputTypeConst and the combination of types set must match an entry in the AttributeTypeRules resource.
This value cannot be changed after create

string | null

The ValueType of the attribute. Must be a valid value for ValueType defined in ValueTypeTypeConst and the combination of types set must match an entry in the AttributeTypeRules resource.
This value cannot be changed after create

string | null

The DataType of the attribute. Must be a valid value for DataType defined in DataTypeTypeConst and the combination of types set must match an entry in the AttributeTypeRules resource.
This value cannot be changed after create

boolean | null

Specifies if this attribute can have a usage type of Option in a ProductType. This value can only be true when when it matches an AttributeTypeRule in the AttributeTypeRules resource.

boolean | null

Specifies if this attribute can have a usage type of Extra in a ProductType. This value can only be true when when it matches an AttributeTypeRule in the AttributeTypeRules resource.

boolean | null

Specifies if this attribute can have a usage type of Property in a ProductType. This value can only be true when when it matches an AttributeTypeRule in the AttributeTypeRules resource.

boolean

Specifies if this attribute is available for order routing

array of objects | null

Attribute Metadata. This list can contain opaque data (key value pairs) that can be used as a property bag for UI concerns.

attributeMetadata
content
object

Container for language-specific content to display on the storefront. You'll have a container for each supported language (LocaleCode). This enables you to display an attribute in multiple languages yet manage it as a single attribute internally.

array of objects | null

The Content of an attribute. This content is always in the default language of the MasterCatalog.

localizedContent
validation
object

Used to validate attributes.

array of objects | null

The list of Values for this attribute. Only available for ValueType:PredefinedVocabulary

vocabularyValues
searchSettings
object

Attribute Search Settings. A container for all of the search and indexing settings of an Attribute

auditInfo
object
Response

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json
text/plain