Interface GraphQLAttributeDefinitionAlreadyExistsError

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

The error is returned as a failed response to the [Create ProductType](/../api/projects/productTypes#create-producttype) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
interface GraphQLAttributeDefinitionAlreadyExistsError {
    code: "AttributeDefinitionAlreadyExists";
    conflictingAttributeName: string;
    conflictingProductTypeId: string;
    conflictingProductTypeName: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

code: "AttributeDefinitionAlreadyExists"
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.

Generated using TypeDoc