AttributeCreateInput
Input for creating new attributes with values and entity associations.
Provides comprehensive attribute creation capabilities, entity association, and value constraints. The input ensures that exactly one entity ID is specified and that the value structure matches the referenced attribute description's requirements.
Supports all attribute types (text, enum, integer, decimal, datetime, color) and all entity classes (product, category, cluster, company, contact, customer). The creation process establishes proper entity relationships.
input AttributeCreateInput {
attributeDescriptionId: String!
value: AttributeValueInput!
customerId: Int
contactId: Int
companyId: Int
productId: Int
clusterId: Int
categoryId: Int
}
Fields
AttributeCreateInput.attributeDescriptionId
● String!
non-null scalar
Unique identifier of the attribute description that defines this attribute.
References the attribute description that contains the metadata, type, and configuration for this attribute. Must be a valid UUID format.
AttributeCreateInput.value
● AttributeValueInput!
non-null input
The actual value data for this attribute.
Contains the attribute value in the appropriate format based on the attribute description's type. The value structure must match the type specified in the referenced attribute description.
AttributeCreateInput.customerId
● Int
scalar
Unique identifier of the customer this attribute belongs to.
Specify this field when creating a customer-specific attribute. Must be a positive integer representing a valid customer ID. Only one entity ID should be provided per attribute creation.
AttributeCreateInput.contactId
● Int
scalar
Unique identifier of the contact this attribute belongs to.
Specify this field when creating a contact-specific attribute. Must be a positive integer representing a valid contact ID. Only one entity ID should be provided per attribute creation.
AttributeCreateInput.companyId
● Int
scalar
Unique identifier of the company this attribute belongs to.
Specify this field when creating a company-specific attribute. Must be a positive integer representing a valid company ID. Only one entity ID should be provided per attribute creation.
AttributeCreateInput.productId
● Int
scalar
Unique identifier of the product this attribute belongs to.
Specify this field when creating a product-specific attribute. Must be a positive integer representing a valid product ID. Only one entity ID should be provided per attribute creation.
AttributeCreateInput.clusterId
● Int
scalar
Unique identifier of the cluster this attribute belongs to.
Specify this field when creating a cluster-specific attribute. Must be a positive integer representing a valid cluster ID. Only one entity ID should be provided per attribute creation.
AttributeCreateInput.categoryId
● Int
scalar
Unique identifier of the category this attribute belongs to.
Specify this field when creating a category-specific attribute. Must be a positive integer representing a valid category ID. Only one entity ID should be provided per attribute creation.
Member Of
attributeCreate
mutation