ProductAttributeUpdate command

This command updates an existing attribute. Note that the attribute type cannot be changed. 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, ProductAttributeUpdate  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

attributeId
(Required) The reference number of the attribute. When the attribute ID is specified, the attribute with the specified attribute ID must exist in the store's default language. You are creating the same attribute in a second language. You must specify either attributeId, or catentryId combined with name.
catentryId
(Required) The reference number of the catalog entry. You must specify either catentryId combined with name, or attributeId.
name
(Required) The name of the attribute. You must specify either name combined with catentryId, or attributeId.
desc
A description of the attribute.
desc2
A description of the attribute.
field1
A customizable field.
attrtypeId
The reference number of the attribute type.
descLangId
The description of the language's reference number.
usage
The purpose of the attribute.
URL
The URL to be called when the command completes successfully.

Example

The following example updates attribute 10001 in the logon language for catalog entry 10001 and attribute name testAttributeInteger:

http://host_name/webapp/wcs/stores/servlet/ProductAttributeUpdate?
attributeId=10001&catentryId=10001&name=testAttributeInteger
&desc=helloWorldAgain&URL=LogonForm

Behavior

Exception conditions

None.