Skip to main content

addProductAttributeDefinitions

Create and process an asynchronous operation that sets new product attribute definitions for the provided brand.

Process Notifications​

Use the response processId to get notifications via processStatusSubscription subscription.

Process Tracking​

Use the processStatus query with the response processId to retrieve process status.

Example:​

{
status: 'COMPLETED',
statusMessage: 'Product attribute definitions added successfully'
}

Authentication Requirements​

Requires authentication and 'products:add_attribute_definition' permission.

Validation Rules​

  • Company context must resolve either from brand_id or X-Company-Id
  • Product attribute definition name must not be blank
  • A product attribute definition with the same name must not exist

Possible Errors​

  • **Authentication Error**: User not authenticated or lacks permissions
  • **Validation Error**: Any validation rule is violated
addProductAttributeDefinitions(
input: AddProductAttributeDefinitionsInput!
): AsynchronousActionResponse!

Arguments​

addProductAttributeDefinitions.input ● AddProductAttributeDefinitionsInput! non-null input common​

Parameters for AddProductAttributeDefinitions

Type​

AsynchronousActionResponse object common​

Asynchronous action response type