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 'brand:add_product_attribute_definition' permission.

Validation Rules

  • Brand must exist
  • 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

Parameters for AddProductAttributeDefinitions

Type

AsynchronousActionResponse object

Asynchronous action response type