AttributeValueUpdate command

This command updates an existing attribute value. This command is called by the Product Management tools in the WebSphere Commerce Accelerator.

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, AttributeValueUpdate  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

attrivalueId
(Required) The reference number of the attribute value. You must specify either attrivalueId, or attributeId combined with catentryId and name.
attributeId
(Required) The reference number of the attribute. The attribute ID cannot be changed and is only used as a reference. If attribute value ID is not supplied, then attribute value ID and catalog entry ID must be supplied or exception will be thrown. You must specify either attributeId combined with catentryId and name, or attrivalueId.
catentryId
(Required) The reference number of the catalog entry. If the catalog entry ID is the item ID (or 0), then the attribute value for that item will be updated (for all languages). The product attribute value will be modified, with all associated items attribute values. You must specify either catentryId combined with attributeId and name, or attrivalueId.
name
(Required) The name of the attribute value. You must specify either name combined with catentryId and attributeId, or attrivalueId.
field1
A customizable field.
field2
A customizable field.
field3
A customizable field.
image1
An image path for this attribute value.
image2
An image path for this attribute value.
seq
The sequence determining the display order of the attribute value for a given attribute. A change in sequence in the product attribute value will not be reflected in the item attribute values.
value
The value of the attribute value.
descLangId
The description of the language's reference number.
URL
The URL to be called when the command completes successfully.

Example 1

The following example updates attribute value 10001, with INTEGER as the type, in the logon language for catalog entry 10001, with attribute value name changed to test float attribute value, and the attribute value changed to 2:

http://host_name/webapp/wcs/stores/servlet/AttributeValueUpdate?
attrvalueId=10001&catentryId=10001&attrtypeId=INTEGER&
field1=1&field2=afield2&field3=afield3&value=2&
image1=aimage1.gif&image2=aimage2.gif&name=test 
float attribute value&URL=LogonForm

Example 2

The following example updates attribute value 10067, with FLOAT as the type, in the logon language to catalog entry 10067, with attribute value name changed to test attribute 1 and the attribute value changed to 1.1:

http://host_name/webapp/wcs/stores/servlet/AttributeValueUpdate?
attrvalueId=10067&catentryId=10007&attrtypeId=FLOAT&
field1=1&field2=afield2&field3=afield3&value=1.1&
image1=aimage1.gif&image2=aimage2.gif&name=test attribute 1
&URL=LogonForm

Behavior

Exception conditions

An error with the attribute value, such as assigning a non-existing attribute value to an item.