@gradientedge/commercetools-utils
    Preparing search index...

    Interface AttributeDefinitionAlreadyExistsError

    Returned when the name of the AttributeDefinition conflicts with an existing Attribute.

    The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
    
    interface AttributeDefinitionAlreadyExistsError {
        code: "AttributeDefinitionAlreadyExists";
        conflictingAttributeName: string;
        conflictingProductTypeId: string;
        conflictingProductTypeName: string;
        message: string;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Properties

    code: "AttributeDefinitionAlreadyExists"

    Error identifier.

    conflictingAttributeName: string

    Name of the conflicting Attribute.

    conflictingProductTypeId: string

    Unique identifier of the Product Type containing the conflicting name.

    conflictingProductTypeName: string

    Name of the Product Type containing the conflicting name.

    message: string

    "An attribute definition with name $attributeName already exists on product type $productTypeName."