Typescript SDK Type Docs
    Preparing search index...

    Interface AttributeDefinitionTypeConflictError

    Returned when the type is different for an AttributeDefinition using the same name in multiple Product Types.

    The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request.
    
    interface AttributeDefinitionTypeConflictError {
        code: "AttributeDefinitionTypeConflict";
        conflictingAttributeName: string;
        conflictingProductTypeId: string;
        conflictingProductTypeName: string;
        message: string;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Properties

    code: "AttributeDefinitionTypeConflict"

    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

    "The attribute with name $attributeName has a different type on product type $productTypeName."